You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-05 22:57:29 +02:00
Moved sync scheduling to redux middleware
This commit is contained in:
@@ -66,8 +66,6 @@ class FolderScreenComponent extends BaseScreenComponent {
|
||||
|
||||
try {
|
||||
folder = await Folder.save(folder, { userSideValidation: true });
|
||||
|
||||
reg.scheduleSync();
|
||||
} catch (error) {
|
||||
dialogs.error(this, _('The notebook could not be saved: %s', error.message));
|
||||
return;
|
||||
@@ -79,7 +77,7 @@ class FolderScreenComponent extends BaseScreenComponent {
|
||||
});
|
||||
|
||||
this.props.dispatch({
|
||||
type: 'Navigation/NAVIGATE',
|
||||
type: 'NAV_GO',
|
||||
routeName: 'Notes',
|
||||
folderId: folder.id,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user