updates
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
|
||||
@main
|
||||
struct PegasusMonitorApp: App {
|
||||
@@ -8,7 +7,6 @@ struct PegasusMonitorApp: App {
|
||||
var body: some Scene {
|
||||
MenuBarExtra {
|
||||
MonitorMenuView(monitor: monitor)
|
||||
.frame(width: 380)
|
||||
} label: {
|
||||
Image(systemName: monitor.status.symbol)
|
||||
.symbolRenderingMode(.palette)
|
||||
@@ -17,9 +15,16 @@ struct PegasusMonitorApp: App {
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
|
||||
Settings {
|
||||
// Real independent windows: editing cannot be dismissed by the menu-bar popover.
|
||||
Window("Pegasus Monitor Settings", id: "monitor-settings") {
|
||||
SettingsView(monitor: monitor)
|
||||
.frame(width: 480)
|
||||
.frame(minWidth: 630, minHeight: 470)
|
||||
}
|
||||
.defaultSize(width: 750, height: 570)
|
||||
|
||||
Window("Server Diagnostics", id: "monitor-diagnostics") {
|
||||
DiagnosticsView(monitor: monitor)
|
||||
}
|
||||
.defaultSize(width: 760, height: 600)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user