diff --git a/qfieldsync/core/preferences.py b/qfieldsync/core/preferences.py index cfec8de8..a823617e 100644 --- a/qfieldsync/core/preferences.py +++ b/qfieldsync/core/preferences.py @@ -23,7 +23,7 @@ def __init__(self): self.add_setting( String("importDirectory", Scope.Global, str(home.joinpath("QField/import"))) ) - self.add_setting(Bool("showPackagingActions", Scope.Global, False)) + self.add_setting(Bool("showPackagingActions", Scope.Global, True)) self.add_setting(String("importDirectoryProject", Scope.Project, None)) self.add_setting(Dictionary("dirsToCopy", Scope.Project, {})) self.add_setting(Stringlist("attachmentDirs", Scope.Project, ["DCIM"])) @@ -35,3 +35,4 @@ def __init__(self): self.add_setting( String("cloudDirectory", Scope.Global, str(home.joinpath("QField/cloud"))) ) + self.add_setting(Bool("firstRun", Scope.Global, True)) diff --git a/qfieldsync/qfield_sync.py b/qfieldsync/qfield_sync.py index f4c7d1df..8a748d50 100644 --- a/qfieldsync/qfield_sync.py +++ b/qfieldsync/qfield_sync.py @@ -146,7 +146,11 @@ def __init__(self, iface): self.cloud_item_gui_provider ) - # autologin + # first run check + if self.preferences.value("firstRun"): + self.preferences.set_value("firstRun", False) + + # auto login check if self.preferences.value("qfieldCloudRememberMe"): self.network_manager.auto_login_attempt()