Skip to content

Commit

Permalink
Add preference to hide menu bar icon (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernardo95 authored Jan 3, 2024
1 parent 31ff83b commit 50018cd
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 52 deletions.
3 changes: 3 additions & 0 deletions Amethyst/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
statusItem?.menu = statusItemMenu
statusItem?.highlightMode = true

let hideMenuBarIcon: Bool = UserConfiguration.shared.hideMenuBarIcon()
statusItem?.isVisible = !hideMenuBarIcon

versionMenuItem?.title = "Version \(shortVersion) (\(version))"
toggleGlobalTilingMenuItem?.title = "Disable"

Expand Down
Loading

0 comments on commit 50018cd

Please sign in to comment.