From 20bddbc0cbe8f8c8aaf49ae42f6b7703c668810f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 3 Jul 2023 22:31:20 +0800 Subject: [PATCH] PrefUI & PrefWindow // Attach build number to the window title. --- Source/Modules/UIModules/PrefUI/CtlPrefUI.swift | 2 +- Source/Modules/WindowControllers/CtlPrefWindow.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/UIModules/PrefUI/CtlPrefUI.swift b/Source/Modules/UIModules/PrefUI/CtlPrefUI.swift index f0cd3b92..d5b0879e 100644 --- a/Source/Modules/UIModules/PrefUI/CtlPrefUI.swift +++ b/Source/Modules/UIModules/PrefUI/CtlPrefUI.swift @@ -90,7 +90,7 @@ class CtlPrefUI: NSWindowController, NSWindowDelegate { window?.toolbarStyle = .preference } window?.toolbar = toolbar - window?.title = preferencesTitleName + window?.title = "\(preferencesTitleName) (\(IMEApp.appVersionLabel))" window?.titlebarAppearsTransparent = false use(view: Self.vwrGeneral, animate: false) } diff --git a/Source/Modules/WindowControllers/CtlPrefWindow.swift b/Source/Modules/WindowControllers/CtlPrefWindow.swift index 4692555c..f8c9b4cf 100644 --- a/Source/Modules/WindowControllers/CtlPrefWindow.swift +++ b/Source/Modules/WindowControllers/CtlPrefWindow.swift @@ -107,7 +107,7 @@ class CtlPrefWindow: NSWindowController, NSWindowDelegate { window?.toolbarStyle = .preference } window?.toolbar = toolbar - window?.title = preferencesTitleName + window?.title = "\(preferencesTitleName) (\(IMEApp.appVersionLabel))" window?.titlebarAppearsTransparent = false use(view: vwrGeneral, animate: false)