Skip to content

Commit

Permalink
Change SettingsAlertView priority
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Oct 4, 2024
1 parent aeed8bf commit 786ae74
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/apps/SettingsWindow/src/View/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ struct ContentView: View {
OverlayAlertView {
DoctorAlertView()
}
} else if contentViewStates.showSettingsAlert {
// When performing a clean install, many alerts are enabled,
// but among them, SettingsAlertView is always displayed first,
// followed by other permission-related alerts in order.
// If the display priority of SettingsAlertView is low,
// it briefly appears before being replaced by other alerts, causing a flickering effect.
// To avoid this, the display priority of SettingsAlertView should be set higher.
OverlayAlertView {
SettingsAlertView()
}
} else if contentViewStates.showInputMonitoringPermissionsAlert {
OverlayAlertView {
InputMonitoringPermissionsAlertView()
Expand All @@ -35,10 +45,6 @@ struct ContentView: View {
DriverNotActivatedAlertViewMacOS14()
}
}
} else if contentViewStates.showSettingsAlert {
OverlayAlertView {
SettingsAlertView()
}
}
}
.frame(
Expand Down

0 comments on commit 786ae74

Please sign in to comment.