mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 14:59:16 +08:00
Correctly register shortcuts on ZoomIt startup first run
This commit is contained in:
parent
df110e7a26
commit
e50c6c4ddc
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user