subsurface/mobile-widgets
jan Iversen 3d6d71aa9f mobile-widgets: add oldStatus variable to qmlmanager
oldStatus() is kept in qmlPrefs during the login process to allow
for a couple of special cases:
- if a user have added dives in NO_CLOUD mode and changes to use the
  cloud these dives are copied to the Cloud, instead of being lost.
- if a user does a bailout from the login process (this should not
  happen anymore) the old status is restored.

The pure solution would be to have oldStatus at the top level (e.g.
a property in qml) and only change it when actually being in the
login process, however due to way the qmlmanager is written it proved
very difficult and not worth the effort.

In order to be able to remove qmlPrefs, oldStatus are moved to
qmlManager.

This commit only contain the creation of the variable and the supporting
code.

Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29 12:20:19 -08:00
..
qml mobile-widgets/qml: remove prefs.showPin 2019-12-29 12:20:19 -08:00
CMakeLists.txt build-system: Add CMakeLists.txt to mobile-widgets 2019-12-24 06:18:36 +09:00
qmlmanager.cpp mobile-widgets: add oldStatus variable to qmlmanager 2019-12-29 12:20:19 -08:00
qmlmanager.h mobile-widgets: add oldStatus variable to qmlmanager 2019-12-29 12:20:19 -08:00
qmlprefs.cpp mobile-widgets: remove showPin from qmlprefs 2019-12-29 12:20:19 -08:00
qmlprefs.h mobile-widgets: remove showPin from qmlprefs 2019-12-29 12:20:19 -08:00