Skip to content

Commit

Permalink
Menubar item width problem fixed.
Browse files Browse the repository at this point in the history
stevenselcuk committed Jul 9, 2021

Verified

This commit was signed with the committer’s verified signature.
Matthew-Whitlock Matthew Whitlock
1 parent 84b8402 commit 9b10f34
Showing 2 changed files with 4 additions and 3 deletions.
Binary file not shown.
7 changes: 4 additions & 3 deletions Pomosh/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -17,9 +17,11 @@ import UserNotifications

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
var popover: NSPopover!
var statusBarItem: NSStatusItem! = NSStatusBar.system.statusItem(withLength: CGFloat(NSStatusItem.variableLength + 70))
@ObservedObject var PoTimer = PomoshTimer()
var popover: NSPopover!

var statusBarItem: NSStatusItem! = NSStatusBar.system.statusItem(withLength: CGFloat(NSStatusItem.variableLength + ( PomoshTimer().showMenubarTimer ? 70 : 0)))


// Init default variables for first launch
let userDefaultsDefaults = [
@@ -75,7 +77,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
if popover.isShown {
popover.performClose(sender)
} else {

popover.show(relativeTo: sbutton.bounds, of: sbutton, preferredEdge: NSRectEdge.minY)
}
}

0 comments on commit 9b10f34

Please sign in to comment.