We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e736a0 commit 0d958d6Copy full SHA for 0d958d6
Ice/UI/IceBar/IceBar.swift
@@ -55,15 +55,15 @@ final class IceBarPanel: NSPanel {
55
.store(in: &c)
56
57
if
58
- let appState,
59
- let section = appState.menuBarManager.section(withName: .hidden),
+ let section = appState?.menuBarManager.section(withName: .hidden),
60
let window = section.controlItem.window
61
{
62
window.publisher(for: \.frame)
63
.debounce(for: 0.1, scheduler: DispatchQueue.main)
64
.sink { [weak self, weak window] _ in
65
guard
66
let self,
+ let appState,
67
// Only continue if the menu bar is automatically hidden, as Ice
68
// can't currently display its menu bar items.
69
appState.menuBarManager.isMenuBarHiddenBySystemUserDefaults,
0 commit comments