mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: preparing a migration to the new reader activation mechanism. Right now module will be active when the first successful read will be achieved. From now the initial value for the module will be taken from the persistent storage (leveldb) that keeps the last read value.
This commit is contained in:
@@ -168,7 +168,9 @@ private class Popup: NSStackView, Popup_p {
|
||||
}
|
||||
|
||||
let h = CGFloat(availableModules.count) * Constants.Popup.portalHeight + (CGFloat(availableModules.count-1)*Constants.Popup.spacing)
|
||||
self.setFrameSize(NSSize(width: self.frame.width, height: h))
|
||||
self.sizeCallback?(self.frame.size)
|
||||
if h > 0 {
|
||||
self.setFrameSize(NSSize(width: self.frame.width, height: h))
|
||||
self.sizeCallback?(self.frame.size)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user