mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: created PopupWrapper for the popup view
This commit is contained in:
@@ -12,9 +12,7 @@
|
||||
import Cocoa
|
||||
import Kit
|
||||
|
||||
internal class Popup: NSStackView, Popup_p {
|
||||
public var sizeCallback: ((NSSize) -> Void)? = nil
|
||||
|
||||
internal class Popup: PopupWrapper {
|
||||
public init() {
|
||||
super.init(frame: NSRect(x: 0, y: 0, width: Constants.Popup.width, height: 0))
|
||||
|
||||
@@ -53,12 +51,6 @@ internal class Popup: NSStackView, Popup_p {
|
||||
self.sizeCallback?(self.frame.size)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Settings
|
||||
|
||||
public func settings() -> NSView? {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
private class GPUView: NSStackView {
|
||||
|
||||
Reference in New Issue
Block a user