mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Settings / SetupWizard & OSD
- Settings cleanup and avoid segfault by not using var. - SetupWizard simplified opening condition logic. Will only open when no settings available - OSD: simplified settings logic, updated translations to explain that no type selected = all types enabled. similar to bar and monitors logic. - Do not open changelog on a fresh install as we already open the SetupWizard
This commit is contained in:
@@ -71,7 +71,7 @@ ShellRoot {
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: typeof ShellState !== 'undefined' ? ShellState : null
|
||||
target: ShellState ? ShellState : null
|
||||
function onIsLoadedChanged() {
|
||||
if (ShellState.isLoaded) {
|
||||
shellStateLoaded = true;
|
||||
@@ -100,10 +100,7 @@ ShellRoot {
|
||||
UpdateService.init();
|
||||
UpdateService.showLatestChangelog();
|
||||
|
||||
// Only open the setup wizard for new users
|
||||
if (!Settings.data.setupCompleted) {
|
||||
checkSetupWizard();
|
||||
}
|
||||
checkSetupWizard();
|
||||
}
|
||||
|
||||
Overview {}
|
||||
@@ -134,7 +131,12 @@ ShellRoot {
|
||||
}
|
||||
|
||||
function checkSetupWizard() {
|
||||
// Wait for distro service
|
||||
// Only open the setup wizard for new users
|
||||
if (!Settings.shouldOpenSetupWizard) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Wait for HostService to be fully ready
|
||||
if (!HostService.isReady) {
|
||||
Qt.callLater(checkSetupWizard);
|
||||
return;
|
||||
@@ -142,16 +144,10 @@ ShellRoot {
|
||||
|
||||
// No setup wizard on NixOS
|
||||
if (HostService.isNixOS) {
|
||||
Settings.data.setupCompleted = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (Settings.data.settingsVersion >= Settings.settingsVersion) {
|
||||
setupWizardTimer.start();
|
||||
} else {
|
||||
Settings.data.setupCompleted = true;
|
||||
Settings.saveImmediate();
|
||||
}
|
||||
setupWizardTimer.start();
|
||||
}
|
||||
|
||||
function showSetupWizard() {
|
||||
|
||||
Reference in New Issue
Block a user