Skip to content

Commit 20a786a

Browse files
Reset last export date on successful import
Then they won't get nagged again.
1 parent ae66cc1 commit 20a786a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JournalApp/Data/AppDataService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public async Task<bool> StartImportWizard(IDialogService dialogService, string p
7777
logger.LogDebug($"Added new data after {sw.ElapsedMilliseconds}ms");
7878
}
7979

80+
LastExportDate = DateTimeOffset.Now;
8081
logger.LogInformation("Finished import");
8182
return true;
8283
}
@@ -141,8 +142,7 @@ await share.RequestAsync(new ShareFileRequest
141142
File = new ShareFile(filePath)
142143
});
143144

144-
Preferences.Set("last_export", DateTimeOffset.Now.ToString());
145-
145+
LastExportDate = DateTimeOffset.Now;
146146
logger.LogInformation("Finished export");
147147
}
148148

0 commit comments

Comments
 (0)