1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop, Mobile: Fixes #9157: Clear "Some items cannot be synchronised" banner after situation is resolved

This commit is contained in:
Laurent Cozic
2024-01-27 16:59:19 +00:00
parent e4854b0bc2
commit 149e409bfa
9 changed files with 50 additions and 10 deletions

View File

@ -4,6 +4,7 @@ import BaseService from './BaseService';
import ResourceService from './ResourceService';
import Logger from '@joplin/utils/Logger';
import shim from '../shim';
import notifyDisabledSyncItems from './synchronizer/utils/checkDisabledSyncItemsNotification';
const { Dirnames } = require('./synchronizer/utils/types');
const EventEmitter = require('events');
@ -243,9 +244,7 @@ export default class ResourceFetcher extends BaseService {
this.logger().info(`ResourceFetcher: Auto-added resources: ${count}`);
const errorCount = await Resource.downloadStatusCounts(Resource.FETCH_STATUS_ERROR);
if (errorCount) this.dispatch({ type: 'SYNC_HAS_DISABLED_SYNC_ITEMS' });
await notifyDisabledSyncItems((action: any) => this.dispatch(action));
} finally {
this.addingResources_ = false;
this.autoAddResourcesCalls_.pop();