Skip to content

Commit

Permalink
feat: add Divider
Browse files Browse the repository at this point in the history
  • Loading branch information
AkaShark committed Feb 5, 2024
1 parent 4d37a08 commit d1fa819
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/NewApp/Feature/Shortcut/Shortcut.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Shortcut: NSObject {
@objc static func setupShortcut() {
let shortcut = Shortcut.shared
shortcut.restoreShortcut()

if Defaults[.firstLaunch] {
Defaults[.firstLaunch] = false
// set defalut for app shortcut
Expand Down
6 changes: 6 additions & 0 deletions Easydict/NewApp/View/MenuView/MainMenuShortcutCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ extension EasyDictMainMenu {
Shortcut.shared.shortcutRetry()
}
.keyboardShortcut(.retry)
Button("toggle_languages") {
Shortcut.shared.shortcutToggle()
}
.keyboardShortcut(.toggle)
Divider()
Button("pin") {
Shortcut.shared.shortcutPin()
}
Expand All @@ -57,6 +62,7 @@ extension EasyDictMainMenu {
Shortcut.shared.decreaseFontSize()
}
.keyboardShortcut(.decreaseFontSize)
Divider()
Button("open_in_google") {
Shortcut.shared.shortcutGoogle()
}
Expand Down

0 comments on commit d1fa819

Please sign in to comment.