You've already forked joplin
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:
@ -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();
|
||||
|
Reference in New Issue
Block a user