Skip to content

Commit b4d2be1

Browse files
committed
Fix Lock button hiding
Commit 1a5f62a added possibility to hide Lock/Sleep/Hibernate buttons if they were disabled in system power settings. Unfortunately this didn't work for Lock button. To fix the behavior we have to add lock command to `g_StdOptions` array and then all the checks introduced in 1a5f62a will apply properly. #173
1 parent 1a5f62a commit b4d2be1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/StartMenu/StartMenuDLL/MenuContainer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ static StdMenuOption g_StdOptions[]=
8383
{MENU_USERPICTURES,MENU_ENABLED}, // check policy
8484
{MENU_SLEEP,MENU_ENABLED}, // check power caps
8585
{MENU_HIBERNATE,MENU_ENABLED}, // check power caps
86+
{MENU_LOCK,MENU_ENABLED}, // check power settings
8687
{MENU_SWITCHUSER,MENU_ENABLED}, // check group policy
8788
{MENU_APPS,MENU_ENABLED}, // enable on Win8+
8889
{MENU_PCSETTINGS,MENU_ENABLED}, // enable on Win8+

0 commit comments

Comments
 (0)