Settings: Hide certain pages when we have no connection

This hides the "Notifications", "Security", "Accounts" and "Devices"
page from the settings if we have no connection. This can now happen
since the user is able to enter the full settings without being logged
in from the welcome page.
This commit is contained in:
Joshua Goins
2024-09-01 08:57:55 -04:00
parent f574c12adc
commit b25a0a7a4e

View File

@@ -44,6 +44,7 @@ KirigamiSettings.ConfigurationView {
connection: root.connection
};
}
visible: root.connection !== null
},
KirigamiSettings.ConfigurationModule {
moduleId: "security"
@@ -55,12 +56,14 @@ KirigamiSettings.ConfigurationView {
connection: root.connection
};
}
visible: root.connection !== null
},
KirigamiSettings.ConfigurationModule {
moduleId: "accounts"
text: i18n("Accounts")
icon.name: "preferences-system-users"
page: () => Qt.createComponent("org.kde.neochat.settings", "AccountsPage")
visible: root.connection !== null
},
KirigamiSettings.ConfigurationModule {
moduleId: "emoticons"
@@ -72,6 +75,7 @@ KirigamiSettings.ConfigurationView {
connection: root.connection
};
}
visible: root.connection !== null
},
KirigamiSettings.SpellcheckingConfigurationModule {},
KirigamiSettings.ConfigurationModule {
@@ -90,6 +94,7 @@ KirigamiSettings.ConfigurationView {
connection: root.connection
};
}
visible: root.connection !== null
},
KirigamiSettings.ConfigurationModule {
moduleId: "aboutNeochat"