reapack

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

commit fe398709dac1545c4df8c06bc43f875fc1ef5cd5
parent 7fdc72866d89789b9355cdd3ac2ed103ea285fe5
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue, 25 Oct 2016 20:26:21 -0400

browser: don't focus the about window on selection change

(regression from 2cb25492e14e5f5379ac4a9bf77220a9f36266c2)

Diffstat:
Msrc/browser.cpp | 12++++++------
Msrc/browser.hpp | 4++--
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/browser.cpp b/src/browser.cpp @@ -518,9 +518,9 @@ void Browser::updateAbout() const auto index = m_list->currentIndex(); if(about->testDelegate<AboutIndexDelegate>()) - aboutRemote(index); + aboutRemote(index, false); else if(about->testDelegate<AboutPackageDelegate>()) - aboutPackage(index); + aboutPackage(index, false); } void Browser::refresh(const bool stale) @@ -844,21 +844,21 @@ auto Browser::getEntry(const int listIndex) -> Entry * return &m_entries[m_visibleEntries[listIndex]]; } -void Browser::aboutPackage(const int index) +void Browser::aboutPackage(const int index, const bool focus) { const Entry *entry = getEntry(index); if(entry && entry->package) { m_reapack->about()->setDelegate(make_shared<AboutPackageDelegate>( - entry->package, entry->regEntry.version, m_reapack)); + entry->package, entry->regEntry.version, m_reapack), focus); } } -void Browser::aboutRemote(const int index) +void Browser::aboutRemote(const int index, const bool focus) { if(const Entry *entry = getEntry(index)) { m_reapack->about()->setDelegate(make_shared<AboutIndexDelegate>( - entry->index, m_reapack)); + entry->index, m_reapack), focus); } } diff --git a/src/browser.hpp b/src/browser.hpp @@ -136,8 +136,8 @@ private: void installVersion(int index, size_t verIndex); void uninstall(int index, bool toggle = true); void togglePin(int index); - void aboutRemote(int index); - void aboutPackage(int index); + void aboutRemote(int index, bool focus = true); + void aboutPackage(int index, bool focus = true); ReaPack *m_reapack; bool m_loading;