removed redundant code
This commit is contained in:
parent
eda67b9ace
commit
c57a997cb8
2 changed files with 9 additions and 17 deletions
23
src/Bar.ahk
23
src/Bar.ahk
|
@ -469,23 +469,18 @@ Bar_updateStatus()
|
|||
}
|
||||
}
|
||||
|
||||
Bar_updateTitle(debugMsg = "")
|
||||
Bar_updateTitle()
|
||||
{
|
||||
Local aWndId, aWndTitle, content, GuiN, i, title
|
||||
|
||||
If debugMsg
|
||||
aWndTitle := debugMsg
|
||||
Else
|
||||
{
|
||||
WinGet, aWndId, ID, A
|
||||
WinGetTitle, aWndTitle, ahk_id %aWndId%
|
||||
If InStr(Bar_hideTitleWndIds, aWndId ";") Or (aWndTitle = "bug.n_BAR_0")
|
||||
aWndTitle := ""
|
||||
If Manager_#%aWndId%_isFloating
|
||||
aWndTitle := "~ " aWndTitle
|
||||
If (Manager_monitorCount > 1)
|
||||
aWndTitle := "[" Manager_aMonitor "] " aWndTitle
|
||||
}
|
||||
WinGet, aWndId, ID, A
|
||||
WinGetTitle, aWndTitle, ahk_id %aWndId%
|
||||
If InStr(Bar_hideTitleWndIds, aWndId ";") Or (aWndTitle = "bug.n_BAR_0")
|
||||
aWndTitle := ""
|
||||
If Manager_#%aWndId%_isFloating
|
||||
aWndTitle := "~ " aWndTitle
|
||||
If (Manager_monitorCount > 1)
|
||||
aWndTitle := "[" Manager_aMonitor "] " aWndTitle
|
||||
title := " " . aWndTitle . " "
|
||||
|
||||
If (Bar_getTextWidth(title) > Bar_#%Manager_aMonitor%_titleWidth)
|
||||
|
|
|
@ -94,9 +94,6 @@ Config_init()
|
|||
|
||||
;; Configuration management
|
||||
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_restoreConfig(Config_filePath)
|
||||
|
|
Loading…
Reference in a new issue