Disable auto assets update in flatpak

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-12-15 00:16:23 +08:00
parent f2d51c9fc7
commit 9a9b17ac31
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -291,8 +291,10 @@ class ConnectAction(AppQAction):
hasNewVersionCallback=newVersionCallback,
)
if SystemRuntime.appImagePath():
logger.info('skipped auto assets update due to running from Linux AppImage')
if SystemRuntime.appImagePath() or SystemRuntime.flatpakID():
logger.info(
'skipped auto assets update due to application folder not writable'
)
else:
if AppSettings.isStateON_('AutoUpdateAssetFiles'):
# Automatically update assets
+1 -1
View File
@@ -184,7 +184,7 @@ class SettingsAction(AppQAction):
else:
hideDockIconAction = []
if SystemRuntime.appImagePath():
if SystemRuntime.appImagePath() or SystemRuntime.flatpakID():
autoUpdateAssetFilesAction = []
else:
autoUpdateAssetFilesAction = (