reapack

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

commit 6ff4142b711d0cc60a77486ff35949b5422ef1f6
parent 28f089e1f37e18873a4bf16b95fe3aa6db28635d
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  5 Jun 2017 21:52:31 -0400

import: disable OK and Cancel buttons while the downloads are aborting

Diffstat:
Msrc/import.cpp | 3++-
Msrc/import.hpp | 1-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/import.cpp b/src/import.cpp @@ -48,7 +48,6 @@ void Import::onInit() m_url = getControl(IDC_URL); m_progress = getControl(IDC_PROGRESS); m_discover = getControl(IDC_DISCOVER); - m_ok = getControl(IDOK); #ifdef PBM_SETMARQUEE SendMessage(m_progress, PBM_SETMARQUEE, 1, 0); @@ -66,6 +65,8 @@ void Import::onCommand(const int id, int) break; case IDCANCEL: if(m_pool) { + disable(getControl(IDOK)); + disable(getControl(IDCANCEL)); m_pool->abort(); m_state = Close; } diff --git a/src/import.hpp b/src/import.hpp @@ -65,7 +65,6 @@ private: HWND m_url; HWND m_progress; HWND m_discover; - HWND m_ok; }; #endif