This commit is contained in:
@@ -67,7 +67,11 @@ struct ContentView: View {
|
||||
.padding()
|
||||
}
|
||||
} detail: {
|
||||
// The minimum size belongs to the detail column, not the split view. A fixed
|
||||
// window minimum smaller than sidebar + detail + inspector minimums makes the
|
||||
// split view re-solve its constraints forever and AppKit aborts.
|
||||
detail
|
||||
.frame(minWidth: 520, minHeight: 550)
|
||||
.navigationTitle(destination?.rawValue ?? "Proxy Studio")
|
||||
.navigationSubtitle(destination == .dns ? unifi.connectionLabel : (store.isDemo ? "Demo Server" : store.serverName))
|
||||
.toolbar {
|
||||
@@ -128,7 +132,6 @@ struct ContentView: View {
|
||||
),
|
||||
prompt: destination == .dns ? "Search DNS Records" : "Search Hosts"
|
||||
)
|
||||
.frame(minWidth: 900, minHeight: 550)
|
||||
.task {
|
||||
guard ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] != "1" else { return }
|
||||
await store.restoreConnection()
|
||||
|
||||
Reference in New Issue
Block a user