Fix webdav prevent immediate upload when webdavAutoSync toggle (#221)

This commit is contained in:
buste
2025-02-21 16:46:22 +08:00
committed by GitHub
parent 4eff50dbed
commit 3efc4794d0
4 changed files with 42 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ class DataSync with ChangeNotifier {
bool get isEnabled {
var config = appdata.settings['webdav'];
var autoSync = appdata.settings['webdavAutoSync'] ?? false;
var autoSync = appdata.implicitData['webdavAutoSync'] ?? false;
return autoSync && config is List && config.isNotEmpty;
}