-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Shortcut With KeyHolder #337
Conversation
# Conflicts: # Easydict.xcodeproj/project.pbxproj # Easydict.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts: # Easydict.xcodeproj/project.pbxproj # Easydict/NewApp/View/SettingView/Tabs/GeneralTab.swift
} | ||
} | ||
|
||
@AppStorage(kHideMainWindowKey) private var hideMainWindow = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can replace this with @Default(.hideMainWindow) private var hideMainWindow
. Defaults
package can provide global default value setting in UserDefaults management so it is recommended to use it instead of @AppStorage
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay I got it
@AkaShark Please update code, move shortcuts code in Genearl to |
yeah I know it, I will open a new PR later |
No description provided.