diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-10 15:54:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-10 15:54:12 +0200 |
commit | ff52a0f90b2cf6e326ef23158db7eeb7148e62e1 (patch) | |
tree | eb1e6335081b08cbb691ee8f0ad916d184489bde /Userland/DevTools/Profiler/main.cpp | |
parent | 53ed30a9f5ce8cfc47943a1a0164e90a5befb576 (diff) | |
download | serenity-ff52a0f90b2cf6e326ef23158db7eeb7148e62e1.zip |
Profiler: Don't change window title based on last enabled option
This behavior was bizarre and only highlighted whichever setting
was the last one to be activated.
Diffstat (limited to 'Userland/DevTools/Profiler/main.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/main.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp index 7491f24324..18a3084d2a 100644 --- a/Userland/DevTools/Profiler/main.cpp +++ b/Userland/DevTools/Profiler/main.cpp @@ -146,26 +146,14 @@ int main(int argc, char** argv) auto& view_menu = menubar->add_menu("View"); - auto update_window_title = [&](auto title, bool is_checked) { - StringBuilder name; - name.append("Profiler"); - if (is_checked) { - name.append(" - "); - name.append(title); - } - window->set_title(name.to_string()); - }; - auto invert_action = GUI::Action::create_checkable("Invert tree", { Mod_Ctrl, Key_I }, [&](auto& action) { profile->set_inverted(action.is_checked()); - update_window_title("Invert tree", action.is_checked()); }); invert_action->set_checked(false); view_menu.add_action(invert_action); auto top_functions_action = GUI::Action::create_checkable("Top functions", { Mod_Ctrl, Key_T }, [&](auto& action) { profile->set_show_top_functions(action.is_checked()); - update_window_title("Top functions", action.is_checked()); }); top_functions_action->set_checked(false); view_menu.add_action(top_functions_action); @@ -174,7 +162,6 @@ int main(int argc, char** argv) profile->set_show_percentages(action.is_checked()); tree_view.update(); disassembly_view.update(); - update_window_title("Show percentages", action.is_checked()); }); percent_action->set_checked(false); view_menu.add_action(percent_action); |