mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
desktop: do not show auto update toggle for flatpak users
This commit is contained in:
@@ -139,6 +139,7 @@ export const BehaviourSettings: SettingsGroup[] = [
|
||||
key: "updates",
|
||||
section: "behaviour",
|
||||
header: "Updates",
|
||||
isHidden: () => useSettingStore.getState().isFlatpak,
|
||||
settings: [
|
||||
{
|
||||
key: "auto-updates",
|
||||
|
||||
@@ -57,6 +57,7 @@ class SettingStore extends BaseStore {
|
||||
*/
|
||||
desktopIntegrationSettings = undefined;
|
||||
autoUpdates = true;
|
||||
isFlatpak = false;
|
||||
|
||||
refresh = async () => {
|
||||
this.set({
|
||||
@@ -64,6 +65,7 @@ class SettingStore extends BaseStore {
|
||||
timeFormat: db.settings.getTimeFormat(),
|
||||
titleFormat: db.settings.getTitleFormat(),
|
||||
trashCleanupInterval: db.settings.getTrashCleanupInterval(),
|
||||
isFlatpak: await desktop?.integration.isFlatpak.query(),
|
||||
desktopIntegrationSettings:
|
||||
await desktop?.integration.desktopIntegration.query(),
|
||||
privacyMode: await desktop?.integration.privacyMode.query(),
|
||||
|
||||
Reference in New Issue
Block a user