Settings are reset in Flatpak
With the last update of Flatpak KDE platform, something has changed making it impossible to save and restore navigation bar settings on mobile. While custom navigation bar settings are saved, on start, they are applied first and then set to default values. This applies to the settings that are bound to
Kirigami.Settings.isMobile
.
To reproduce:
-
install Angelfish using current Flatpak platform (don't forget to update platform as well)
-
start with
QT_QUICK_CONTROLS_STYLE=Plasma QT_QUICK_CONTROLS_MOBILE=1 flatpak run org.kde.mobile.angelfish
-
change navigation bar back button to be shown (default is not to)
-
close Angelfish
-
check that the setting has been saved properly
cat ~/.var/app/org.kde.mobile.angelfish/config/KDE/angelfish.conf
-
start Angelfish, got to Settings/Navigation bar
-
Back button will be set to be hidden. Same can be confirmed by observing configuration file after the start.
I have narrowed it all down to binding with Kirigami.Settings.isMobile
. If I remove that binding, the settings work as expected. Strangely, if I just bind a variable to Kirigami.Settings.isMobile
, that one does not change in the meantime.
On normal desktop installation, on my system, such issue is not observed.