mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +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
|
@ -843,10 +843,7 @@ public:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_LOCKTASKBAR:
|
case ID_LOCKTASKBAR:
|
||||||
if (SHRestricted(REST_CLASSICSHELL) == 0)
|
HandleCommand(TRAYCMD_LOCK_TASKBAR);
|
||||||
{
|
|
||||||
Lock(!g_TaskbarSettings.bLock);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_SHELL_CMD_OPEN_TASKMGR:
|
case ID_SHELL_CMD_OPEN_TASKMGR:
|
||||||
|
@ -1016,6 +1013,7 @@ public:
|
||||||
if (SHRestricted(REST_CLASSICSHELL) == 0)
|
if (SHRestricted(REST_CLASSICSHELL) == 0)
|
||||||
{
|
{
|
||||||
Lock(!g_TaskbarSettings.bLock);
|
Lock(!g_TaskbarSettings.bLock);
|
||||||
|
g_TaskbarSettings.Save();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TRAYCMD_HELP_AND_SUPPORT:
|
case TRAYCMD_HELP_AND_SUPPORT:
|
||||||
|
@ -1609,6 +1607,8 @@ GetPrimaryScreenRect:
|
||||||
|
|
||||||
m_Monitor = m_DraggingMonitor;
|
m_Monitor = m_DraggingMonitor;
|
||||||
m_Position = m_DraggingPosition;
|
m_Position = m_DraggingPosition;
|
||||||
|
g_TaskbarSettings.sr.Position = m_Position;
|
||||||
|
g_TaskbarSettings.Save();
|
||||||
IsDragging = FALSE;
|
IsDragging = FALSE;
|
||||||
|
|
||||||
m_TrayRects[m_Position] = rcTray;
|
m_TrayRects[m_Position] = rcTray;
|
||||||
|
|
Loading…
Reference in a new issue