diff --git a/src/runner/Resources.resx b/src/runner/Resources.resx index 2986ec6cef..3cc2f1ad36 100644 --- a/src/runner/Resources.resx +++ b/src/runner/Resources.resx @@ -180,9 +180,6 @@ Exit Exit as a verb, as in Exit the application - - Show icon - Report bug diff --git a/src/runner/general_settings.cpp b/src/runner/general_settings.cpp index bf80fb2df8..4fdf6b74d2 100644 --- a/src/runner/general_settings.cpp +++ b/src/runner/general_settings.cpp @@ -164,7 +164,8 @@ void apply_general_settings(const json::JsonObject& general_configs, bool save) else { delete_auto_start_task_for_this_user(); - if (gpo_run_as_startup == powertoys_gpo::gpo_rule_configured_enabled || gpo_run_as_startup == powertoys_gpo::gpo_rule_configured_not_configured) { + if (gpo_run_as_startup == powertoys_gpo::gpo_rule_configured_enabled || gpo_run_as_startup == powertoys_gpo::gpo_rule_configured_not_configured) + { create_auto_start_task_for_this_user(run_as_elevated); } } diff --git a/src/runner/resource.base.h b/src/runner/resource.base.h index 0ee4cbb2e5..027f5b4281 100644 --- a/src/runner/resource.base.h +++ b/src/runner/resource.base.h @@ -21,4 +21,3 @@ #define ID_REPORT_BUG_COMMAND 40004 #define ID_DOCUMENTATION_MENU_COMMAND 40005 #define ID_QUICK_ACCESS_MENU_COMMAND 40006 -#define ID_SHOW_TRAY_ICON_MENU_COMMAND 40007 diff --git a/src/runner/runner.base.rc b/src/runner/runner.base.rc index 9f56295553..10a4555db8 100644 Binary files a/src/runner/runner.base.rc and b/src/runner/runner.base.rc differ diff --git a/src/runner/tray_icon.cpp b/src/runner/tray_icon.cpp index 7f819209e5..53da747539 100644 --- a/src/runner/tray_icon.cpp +++ b/src/runner/tray_icon.cpp @@ -91,13 +91,6 @@ void handle_tray_command(HWND window, const WPARAM command_id, LPARAM lparam) } DestroyWindow(window); break; - case ID_SHOW_TRAY_ICON_MENU_COMMAND: - { - GeneralSettings settings = get_general_settings(); - settings.showSystemTrayIcon = true; - apply_general_settings(settings.to_json(), true); - break; - } case ID_ABOUT_MENU_COMMAND: if (!about_box_shown) { @@ -199,13 +192,11 @@ LRESULT __stdcall tray_icon_window_proc(HWND window, UINT message, WPARAM wparam { static std::wstring settings_menuitem_label = GET_RESOURCE_STRING(IDS_SETTINGS_MENU_TEXT); static std::wstring exit_menuitem_label = GET_RESOURCE_STRING(IDS_EXIT_MENU_TEXT); - static std::wstring show_tray_icon_menuitem_label = GET_RESOURCE_STRING(IDS_SHOW_TRAY_ICON_MENU_TEXT); static std::wstring submit_bug_menuitem_label = GET_RESOURCE_STRING(IDS_SUBMIT_BUG_TEXT); static std::wstring documentation_menuitem_label = GET_RESOURCE_STRING(IDS_DOCUMENTATION_MENU_TEXT); static std::wstring quick_access_menuitem_label = GET_RESOURCE_STRING(IDS_QUICK_ACCESS_MENU_TEXT); change_menu_item_text(ID_SETTINGS_MENU_COMMAND, settings_menuitem_label.data()); change_menu_item_text(ID_EXIT_MENU_COMMAND, exit_menuitem_label.data()); - change_menu_item_text(ID_SHOW_TRAY_ICON_MENU_COMMAND, show_tray_icon_menuitem_label.data()); change_menu_item_text(ID_REPORT_BUG_COMMAND, submit_bug_menuitem_label.data()); bool bug_report_disabled = is_bug_report_running(); EnableMenuItem(h_sub_menu, ID_REPORT_BUG_COMMAND, MF_BYCOMMAND | (bug_report_disabled ? MF_GRAYED : MF_ENABLED));