mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-15 08:50:57 +00:00
Adding some size fixing (#709)
This commit is contained in:
parent
d7f8d5e56b
commit
e8cdcdfb7f
@ -9,13 +9,13 @@ struct Secretive: App {
|
|||||||
|
|
||||||
@Environment(\.agentStatusChecker) var agentStatusChecker
|
@Environment(\.agentStatusChecker) var agentStatusChecker
|
||||||
@Environment(\.justUpdatedChecker) var justUpdatedChecker
|
@Environment(\.justUpdatedChecker) var justUpdatedChecker
|
||||||
@AppStorage("defaultsHasRunSetup") var hasRunSetup = false
|
|
||||||
|
|
||||||
@SceneBuilder var body: some Scene {
|
@SceneBuilder var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
ContentView()
|
ContentView()
|
||||||
.environment(EnvironmentValues._secretStoreList)
|
.environment(EnvironmentValues._secretStoreList)
|
||||||
.onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
|
.onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
|
||||||
|
@AppStorage("defaultsHasRunSetup") var hasRunSetup = false
|
||||||
guard hasRunSetup else { return }
|
guard hasRunSetup else { return }
|
||||||
agentStatusChecker.check()
|
agentStatusChecker.check()
|
||||||
if agentStatusChecker.running && justUpdatedChecker.justUpdatedBuild {
|
if agentStatusChecker.running && justUpdatedChecker.justUpdatedBuild {
|
||||||
@ -32,10 +32,12 @@ struct Secretive: App {
|
|||||||
WindowGroup(id: String(describing: IntegrationsView.self)) {
|
WindowGroup(id: String(describing: IntegrationsView.self)) {
|
||||||
IntegrationsView()
|
IntegrationsView()
|
||||||
}
|
}
|
||||||
|
.windowResizability(.contentMinSize)
|
||||||
WindowGroup(id: String(describing: AboutView.self)) {
|
WindowGroup(id: String(describing: AboutView.self)) {
|
||||||
AboutView()
|
AboutView()
|
||||||
}
|
}
|
||||||
.windowStyle(.hiddenTitleBar)
|
.windowStyle(.hiddenTitleBar)
|
||||||
|
.windowResizability(.contentSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,9 @@ struct SetupView: View {
|
|||||||
integrations = true
|
integrations = true
|
||||||
}, content: {
|
}, content: {
|
||||||
IntegrationsView()
|
IntegrationsView()
|
||||||
|
.frame(minWidth: 500, minHeight: 400)
|
||||||
})
|
})
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ struct ToolConfigurationView: View {
|
|||||||
selectedSecret = created
|
selectedSecret = created
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.fixedSize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ struct AboutViewContent: View {
|
|||||||
Button(.aboutBuildLogButton) {
|
Button(.aboutBuildLogButton) {
|
||||||
openURL(Bundle.main.buildLog)
|
openURL(Bundle.main.buildLog)
|
||||||
}
|
}
|
||||||
.normalButton()
|
.normalButton()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ struct ContentView: View {
|
|||||||
@Environment(\.updater) private var updater
|
@Environment(\.updater) private var updater
|
||||||
@Environment(\.agentStatusChecker) private var agentStatusChecker
|
@Environment(\.agentStatusChecker) private var agentStatusChecker
|
||||||
|
|
||||||
@AppStorage("defaultsHasRunSetup") private var hasRunSetup = false
|
@State private var hasRunSetup = false
|
||||||
@State private var showingCreation = false
|
@State private var showingCreation = false
|
||||||
@State private var showingAppPathNotice = false
|
@State private var showingAppPathNotice = false
|
||||||
@State private var runningSetup = false
|
@State private var runningSetup = false
|
||||||
|
Loading…
Reference in New Issue
Block a user