You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
All: Fixes #536: Allow changing sync target file path
This commit is contained in:
@@ -30,6 +30,11 @@ reg.showErrorMessageBox = (message) => {
|
||||
reg.showErrorMessageBoxHandler_(message);
|
||||
}
|
||||
|
||||
reg.resetSyncTarget = (syncTargetId = null) => {
|
||||
if (syncTargetId === null) syncTargetId = Setting.value('sync.target');
|
||||
delete reg.syncTargets_[syncTargetId];
|
||||
}
|
||||
|
||||
reg.syncTarget = (syncTargetId = null) => {
|
||||
if (syncTargetId === null) syncTargetId = Setting.value('sync.target');
|
||||
if (reg.syncTargets_[syncTargetId]) return reg.syncTargets_[syncTargetId];
|
||||
|
||||
Reference in New Issue
Block a user