reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 6e9ba5588c55d5c938e50a54eae17ec0c1b22f97
parent a9c1197450e51ebdded4e3e828f084dc40df5d7b
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 10 Sep 2016 19:59:33 -0400

manager: synchronize whithout prompting

Diffstat:
Msrc/manager.cpp | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/manager.cpp b/src/manager.cpp @@ -429,11 +429,11 @@ bool Manager::apply() if(!tx) return false; - bool promptSync = false; + bool syncAll = false; if(m_autoInstall) { m_config->install.autoInstall = m_autoInstall.value(); - promptSync = m_config->install.autoInstall; + syncAll = m_autoInstall.value(); } if(m_bleedingEdge) @@ -449,19 +449,16 @@ bool Manager::apply() if(m_uninstall.find(remote) == m_uninstall.end()) { m_reapack->setRemoteEnabled(enable, remote); - if(enable) - promptSync = true; + if(enable && !syncAll) + tx->synchronize(remote); } } for(const Remote &remote : m_uninstall) m_reapack->uninstall(remote); - if(promptSync && MessageBox(handle(), - AUTO_STR("Synchronize packages (install/update) now?"), - AUTO_STR("ReaPack Query"), MB_YESNO) == IDYES) { + if(syncAll) m_reapack->synchronizeAll(); - } tx->runTasks(); m_config->write();