fix: frames and switch_to warning instead of instruction

This commit is contained in:
Michael Freno
2026-01-13 16:05:53 -05:00
parent 3eac9a2767
commit a33b671be3
3 changed files with 23 additions and 11 deletions

View File

@@ -123,20 +123,25 @@ struct OnboardingContainerView: View {
}
}
}
.frame(
minWidth: 1000,
minHeight: 700
)
#if APPSTORE
.frame(
minWidth: 1000,
minHeight: 700
)
#else
.frame(
minWidth: 1000,
minHeight: 900
)
#endif
}
private func completeOnboarding() {
// Mark onboarding as complete - settings are already being updated in real-time
settingsManager.settings.hasCompletedOnboarding = true
// Close window with standard macOS animation
dismiss()
// After a brief delay, trigger the menu bar extra to open
DispatchQueue.main.asyncAfter(deadline: .now()) {
if let menuBarWindow = NSApp.windows.first(where: {
$0.className.contains("MenuBarExtra") || $0.className.contains("StatusBar")

View File

@@ -78,10 +78,17 @@ struct SettingsWindowView: View {
}
.padding()
}
.frame(
minWidth: 750,
minHeight: 700
)
#if APPSTORE
.frame(
minWidth: 750,
minHeight: 700
)
#else
.frame(
minWidth: 750,
minHeight: 900
)
#endif
.onReceive(
NotificationCenter.default.publisher(for: Notification.Name("SwitchToSettingsTab"))
) { notification in