Skip to content

Commit

Permalink
Fix a bug which stops status icons from working when hiding and showi…
Browse files Browse the repository at this point in the history
…ng using double ctrl
  • Loading branch information
konstantintuev committed Dec 8, 2020
1 parent 041b8f6 commit 765b284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pock/Widgets/Status/StatusWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class StatusWidget: PKWidget {
required init() {
self.customizationLabel = "Status".localized
self.initStackView()
self.loadStatusElements()
self.view = stackView
}

Expand All @@ -39,6 +38,7 @@ class StatusWidget: PKWidget {
}

func viewDidAppear() {
self.loadStatusElements()
NSWorkspace.shared.notificationCenter.addObserver(forName: .shouldReloadStatusWidget, object: nil, queue: .main, using: { [weak self] _ in
self?.loadStatusElements(needsUnload: true)
})
Expand Down

0 comments on commit 765b284

Please sign in to comment.