Fixed bug 'Taskbar not hidden on init'

This commit is contained in:
joten 2018-01-06 22:46:12 +01:00
parent f446e29781
commit fb37d017ae
3 changed files with 7 additions and 5 deletions

BIN
bugn.exe

Binary file not shown.

View file

@ -44,8 +44,6 @@ Manager_init()
Monitor_init(A_Index, doRestore)
}
Bar_initCmdGui()
If Not Config_showTaskBar
Monitor_toggleTaskBar()
Manager_hideShow := False
Bar_hideTitleWndIds := ""

View file

@ -30,6 +30,10 @@ Monitor_init(m, doRestore) {
Config_restoreLayout(Config_filePath, m)
SysGet, Monitor_#%m%_name, MonitorName, %m%
Monitor_getWorkArea(m)
If Not Monitor_#%m%_showTaskBar {
Monitor_#%m%_showTaskBar := True
Monitor_toggleTaskBar(m)
}
Bar_init(m)
}
@ -315,10 +319,10 @@ Monitor_toggleNotifyIconOverflowWindow() {
}
}
Monitor_toggleTaskBar() {
Local m
Monitor_toggleTaskBar(m := 0) {
Global
m := Manager_aMonitor
m := m ? m : Manager_aMonitor
If Monitor_#%m%_taskBarClass {
Monitor_#%m%_showTaskBar := Not Monitor_#%m%_showTaskBar
Manager_hideShow := True