Correctly register shortcuts on ZoomIt startup first run

This commit is contained in:
Jaime Bernardo 2024-11-15 14:43:00 +00:00
parent df110e7a26
commit e50c6c4ddc
2 changed files with 3 additions and 5 deletions

View File

@ -3630,12 +3630,12 @@ LRESULT APIENTRY MainWndProc(
g_SnipToggleMod = GetKeyMod( g_SnipToggleKey );
g_RecordToggleMod = GetKeyMod( g_RecordToggleKey );
if( !g_OptionsShown ) {
if( !g_OptionsShown && !g_StartedByPowerToys ) {
// First run should show options when running as standalone. If not running as standalone,
// options screen won't show and we should register keys instead.
SendMessage( hWnd, WM_COMMAND, IDC_OPTIONS, 0 );
g_OptionsShown = TRUE;
reg.WriteRegSettings( RegSettings );
} else {
BOOL showOptions = FALSE;

View File

@ -48,8 +48,6 @@ namespace Microsoft.PowerToys.Settings.UI.Library
public IntProperty PenWidth { get; set; }
public BoolProperty OptionsShown { get; set; }
public StringProperty BreakPenColor { get; set; }
public KeyboardKeysProperty BreakTimerKey { get; set; }