reapack

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

commit aeffbdfb44cd8d04c271cd64cc5cde73a085285c
parent 303bfa1ef72a4a8d509a3723b9f3bfd45cb6c6a3
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  2 May 2016 02:46:57 -0400

manager: restore enabled/disabled state when cancelling queued uninstallations

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

diff --git a/src/manager.cpp b/src/manager.cpp @@ -235,11 +235,6 @@ void Manager::uninstall() m_uninstall.insert(remote); enable(m_apply); - const auto it = m_enableOverrides.find(remote); - - if(it != m_enableOverrides.end()) - m_enableOverrides.erase(it); - m_list->removeRow(index); } } @@ -305,7 +300,8 @@ bool Manager::apply() const Remote &remote = pair.first; const bool enable = pair.second; - m_reapack->setRemoteEnabled(enable, remote); + if(m_uninstall.find(remote) == m_uninstall.end()) + m_reapack->setRemoteEnabled(enable, remote); } for(const Remote &remote : m_uninstall)