Auto-push to remote when loading new patch
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
d0a354a411
commit
abf1d4455a
1 changed files with 16 additions and 0 deletions
|
@ -643,6 +643,10 @@ void loadPathDialog(const std::string& path, const bool asTemplate)
|
|||
APP->patch->path = "";
|
||||
APP->history->setSaved();
|
||||
}
|
||||
|
||||
if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
|
||||
if (remoteDetails->autoDeploy)
|
||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
@ -668,6 +672,10 @@ void loadSelectionDialog()
|
|||
}
|
||||
|
||||
std::free(pathC);
|
||||
|
||||
if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
|
||||
if (remoteDetails->autoDeploy)
|
||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -676,6 +684,10 @@ void loadTemplateDialog()
|
|||
#ifndef HEADLESS_BEHAVIOUR
|
||||
promptClear("The current patch is unsaved. Clear it and start a new patch?", []() {
|
||||
APP->patch->loadTemplate();
|
||||
|
||||
if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
|
||||
if (remoteDetails->autoDeploy)
|
||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
@ -687,6 +699,10 @@ void revertDialog()
|
|||
return;
|
||||
promptClear("Revert patch to the last saved state?", []{
|
||||
APP->patch->loadAction(APP->patch->path);
|
||||
|
||||
if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
|
||||
if (remoteDetails->autoDeploy)
|
||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue