mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-12 16:23:32 +01:00
More improvements to unstable features and advanced settings
- added description of what they are and notice if there are none available - move them to advanced settings - add alert for unstable features in dev mode if the build does not have them enabled - move stuff out of the danger zone and into anisette section in advanced settings
This commit is contained in:
@@ -128,6 +128,10 @@ struct DevModeMenu: View {
|
||||
@AppStorage("isConsoleEnabled")
|
||||
var isConsoleEnabled: Bool = false
|
||||
|
||||
#if !UNSTABLE
|
||||
@State var isUnstableAlertShowing = false
|
||||
#endif
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
Section {
|
||||
@@ -143,6 +147,10 @@ struct DevModeMenu: View {
|
||||
}
|
||||
#if !UNSTABLE
|
||||
.disabled(true)
|
||||
.alert(isPresented: $isUnstableAlertShowing) {
|
||||
Alert(title: Text(L10n.DevModeView.unstableFeaturesNightlyOnly))
|
||||
}
|
||||
.onTapGesture { isUnstableAlertShowing = true }
|
||||
#endif
|
||||
|
||||
NavigationLink(L10n.DevModeView.dataExplorer) {
|
||||
|
||||
Reference in New Issue
Block a user