Fix fetch-on-startup logic

The fetch-on-startup would only happen if the metered state was
explicitly set to "No".  Hence, when the state is "Unknown" (which will
happen in most cases) no fetching would be done on startup.

The new logic will check for the metered state not being equal to "Yes".
This commit is contained in:
Bart De Vries 2021-10-27 10:20:44 +02:00
parent 3ff1333195
commit 2455e543fe
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ Kirigami.ApplicationWindow {
// Refresh feeds on startup if allowed
if (SettingsManager.refreshOnStartup) {
if (SettingsManager.allowMeteredFeedUpdates || NetworkStatus.metered === NetworkStatus.No) {
if (SettingsManager.allowMeteredFeedUpdates || NetworkStatus.metered !== NetworkStatus.Yes) {
Fetcher.fetchAll();
}
}