fix: frames and switch_to warning instead of instruction
This commit is contained in:
@@ -123,20 +123,25 @@ struct OnboardingContainerView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if APPSTORE
|
||||||
.frame(
|
.frame(
|
||||||
minWidth: 1000,
|
minWidth: 1000,
|
||||||
minHeight: 700
|
minHeight: 700
|
||||||
)
|
)
|
||||||
|
#else
|
||||||
|
.frame(
|
||||||
|
minWidth: 1000,
|
||||||
|
minHeight: 900
|
||||||
|
)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private func completeOnboarding() {
|
private func completeOnboarding() {
|
||||||
// Mark onboarding as complete - settings are already being updated in real-time
|
// Mark onboarding as complete - settings are already being updated in real-time
|
||||||
settingsManager.settings.hasCompletedOnboarding = true
|
settingsManager.settings.hasCompletedOnboarding = true
|
||||||
|
|
||||||
// Close window with standard macOS animation
|
|
||||||
dismiss()
|
dismiss()
|
||||||
|
|
||||||
// After a brief delay, trigger the menu bar extra to open
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now()) {
|
DispatchQueue.main.asyncAfter(deadline: .now()) {
|
||||||
if let menuBarWindow = NSApp.windows.first(where: {
|
if let menuBarWindow = NSApp.windows.first(where: {
|
||||||
$0.className.contains("MenuBarExtra") || $0.className.contains("StatusBar")
|
$0.className.contains("MenuBarExtra") || $0.className.contains("StatusBar")
|
||||||
|
|||||||
@@ -78,10 +78,17 @@ struct SettingsWindowView: View {
|
|||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
|
#if APPSTORE
|
||||||
.frame(
|
.frame(
|
||||||
minWidth: 750,
|
minWidth: 750,
|
||||||
minHeight: 700
|
minHeight: 700
|
||||||
)
|
)
|
||||||
|
#else
|
||||||
|
.frame(
|
||||||
|
minWidth: 750,
|
||||||
|
minHeight: 900
|
||||||
|
)
|
||||||
|
#endif
|
||||||
.onReceive(
|
.onReceive(
|
||||||
NotificationCenter.default.publisher(for: Notification.Name("SwitchToSettingsTab"))
|
NotificationCenter.default.publisher(for: Notification.Name("SwitchToSettingsTab"))
|
||||||
) { notification in
|
) { notification in
|
||||||
|
|||||||
Reference in New Issue
Block a user