removed redundant code
This commit is contained in:
parent
eda67b9ace
commit
c57a997cb8
2 changed files with 9 additions and 17 deletions
|
@ -469,14 +469,10 @@ Bar_updateStatus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Bar_updateTitle(debugMsg = "")
|
Bar_updateTitle()
|
||||||
{
|
{
|
||||||
Local aWndId, aWndTitle, content, GuiN, i, title
|
Local aWndId, aWndTitle, content, GuiN, i, title
|
||||||
|
|
||||||
If debugMsg
|
|
||||||
aWndTitle := debugMsg
|
|
||||||
Else
|
|
||||||
{
|
|
||||||
WinGet, aWndId, ID, A
|
WinGet, aWndId, ID, A
|
||||||
WinGetTitle, aWndTitle, ahk_id %aWndId%
|
WinGetTitle, aWndTitle, ahk_id %aWndId%
|
||||||
If InStr(Bar_hideTitleWndIds, aWndId ";") Or (aWndTitle = "bug.n_BAR_0")
|
If InStr(Bar_hideTitleWndIds, aWndId ";") Or (aWndTitle = "bug.n_BAR_0")
|
||||||
|
@ -485,7 +481,6 @@ Bar_updateTitle(debugMsg = "")
|
||||||
aWndTitle := "~ " aWndTitle
|
aWndTitle := "~ " aWndTitle
|
||||||
If (Manager_monitorCount > 1)
|
If (Manager_monitorCount > 1)
|
||||||
aWndTitle := "[" Manager_aMonitor "] " aWndTitle
|
aWndTitle := "[" Manager_aMonitor "] " aWndTitle
|
||||||
}
|
|
||||||
title := " " . aWndTitle . " "
|
title := " " . aWndTitle . " "
|
||||||
|
|
||||||
If (Bar_getTextWidth(title) > Bar_#%Manager_aMonitor%_titleWidth)
|
If (Bar_getTextWidth(title) > Bar_#%Manager_aMonitor%_titleWidth)
|
||||||
|
|
|
@ -94,9 +94,6 @@ Config_init()
|
||||||
|
|
||||||
;; Configuration management
|
;; Configuration management
|
||||||
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"
|
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"
|
||||||
; @todo: To be removed?
|
|
||||||
If Not Config_filePath ; The file path, to which the configuration and session is saved. This target directory must be writable by the user (%A_ScriptDir% is the diretory, in which "Main.ahk" or the executable of bug.n is saved).
|
|
||||||
Config_filePath := A_ScriptDir "\Config.ini"
|
|
||||||
Config_maintenanceInterval := 5000
|
Config_maintenanceInterval := 5000
|
||||||
|
|
||||||
Config_restoreConfig(Config_filePath)
|
Config_restoreConfig(Config_filePath)
|
||||||
|
|
Loading…
Reference in a new issue