PrefPackage // Patch the behavior of handling window titles.
This commit is contained in:
parent
54e236539f
commit
347f174d6c
|
@ -114,13 +114,16 @@ final class PreferencesTabViewController: NSViewController, PreferencesStyleCont
|
||||||
|
|
||||||
private func updateWindowTitle(tabIndex: Int) {
|
private func updateWindowTitle(tabIndex: Int) {
|
||||||
window.title = {
|
window.title = {
|
||||||
if preferencePanes.count > 1 {
|
// if preferencePanes.count > 1 {
|
||||||
return preferencePanes[tabIndex].preferencePaneTitle
|
// return preferencePanes[tabIndex].preferencePaneTitle
|
||||||
} else {
|
// } else {
|
||||||
let preferences = Localization[.preferences]
|
// let preferences = Localization[.preferences]
|
||||||
let appName = Bundle.main.appName
|
// let appName = Bundle.main.appName
|
||||||
return "\(appName) \(preferences)"
|
// return "\(appName) \(preferences)"
|
||||||
}
|
// }
|
||||||
|
var preferencesTitleName = NSLocalizedString("vChewing Preferences…", comment: "")
|
||||||
|
preferencesTitleName.removeLast()
|
||||||
|
return preferencesTitleName
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue