-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
menu: fix CFBundleName and multiple about windows (#17)
- Loading branch information
1 parent
678cce7
commit 51c8bc3
Showing
6 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
build | ||
*.dmg | ||
*.tar.bz2 | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
en.lproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CFBundleName = "小企鹅"; | ||
CFBundleDisplayName = "小企鹅"; | ||
org.fcitx.inputmethod.fcitx5 = "小企鹅"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CFBundleName = "小企鵝"; | ||
CFBundleDisplayName = "小企鵝"; | ||
org.fcitx.inputmethod.fcitx5 = "小企鵝"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import Foundation | ||
import Cocoa | ||
|
||
extension FcitxInputController { | ||
static var fcitxAbout: NSWindowController? | ||
|
||
@objc func about(_: Any? = nil) { | ||
FcitxAbout().showWindow(nil) | ||
if FcitxInputController.fcitxAbout == nil { | ||
FcitxInputController.fcitxAbout = FcitxAbout() | ||
} | ||
FcitxInputController.fcitxAbout!.showWindow(nil) | ||
} | ||
} |