Skip to content

Commit

Permalink
perf: rename MenuBarIconType enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 30, 2024
1 parent 5a18ed5 commit a0e941b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Easydict/NewApp/Configuration/Configuration+Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extension Defaults.Keys {

static let appearanceType = Key<AppearenceType>("EZConfiguration_kApperanceKey", default: .followSystem)
static let fontSizeOptionIndex = Key<UInt>("EZConfiguration_kTranslationControllerFontKey", default: 0)
static let selectedMenuBarIcon = Key<MenuBarIconType>("EZConfiguration_kSelectedMenuBarIconKey", default: .classical)
static let selectedMenuBarIcon = Key<MenuBarIconType>("EZConfiguration_kSelectedMenuBarIconKey", default: .square)
}

extension Defaults.Keys {
Expand Down
4 changes: 2 additions & 2 deletions Easydict/NewApp/EasydictApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ extension Bool {
enum MenuBarIconType: String, CaseIterable, Defaults.Serializable, Identifiable {
var id: Self { self }

case classical = "status_icon"
case debug = "status_icon_debug"
case square = "status_icon"
case rounded = "status_icon_debug"
}

0 comments on commit a0e941b

Please sign in to comment.