mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[EXPLORER] Save taskbar position and locked state after reboot (#5393)
- Save locked state of the taskbar when toggled using its context menu. - Save position of the taskbar after dragging it around the desktop. - Invoke TRAYCMD_LOCK_TASKBAR command when (un)locking the taskbar by the context menu, instead of duplicating this functionality. CORE-11621 CORE-16997
This commit is contained in:
parent
bfb973e0b3
commit
7fafeb6390
1 changed files with 4 additions and 4 deletions
|
@ -843,10 +843,7 @@ public:
|
|||
break;
|
||||
|
||||
case ID_LOCKTASKBAR:
|
||||
if (SHRestricted(REST_CLASSICSHELL) == 0)
|
||||
{
|
||||
Lock(!g_TaskbarSettings.bLock);
|
||||
}
|
||||
HandleCommand(TRAYCMD_LOCK_TASKBAR);
|
||||
break;
|
||||
|
||||
case ID_SHELL_CMD_OPEN_TASKMGR:
|
||||
|
@ -1016,6 +1013,7 @@ public:
|
|||
if (SHRestricted(REST_CLASSICSHELL) == 0)
|
||||
{
|
||||
Lock(!g_TaskbarSettings.bLock);
|
||||
g_TaskbarSettings.Save();
|
||||
}
|
||||
break;
|
||||
case TRAYCMD_HELP_AND_SUPPORT:
|
||||
|
@ -1609,6 +1607,8 @@ GetPrimaryScreenRect:
|
|||
|
||||
m_Monitor = m_DraggingMonitor;
|
||||
m_Position = m_DraggingPosition;
|
||||
g_TaskbarSettings.sr.Position = m_Position;
|
||||
g_TaskbarSettings.Save();
|
||||
IsDragging = FALSE;
|
||||
|
||||
m_TrayRects[m_Position] = rcTray;
|
||||
|
|
Loading…
Reference in a new issue