diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-08-21 13:55:28 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-08-21 14:44:46 +0100 |
commit | d7dadabfbf61a46996d13894ed591d057bb8c1b3 (patch) | |
tree | 45237ae9fe2b126d0a09599fb11f6f41bcef8b47 /launcher/ui/pages/global | |
parent | f99b04bd1656a8e5cd871c1fadc1550e663fc33a (diff) | |
download | PrismLauncher-d7dadabfbf61a46996d13894ed591d057bb8c1b3.tar.gz PrismLauncher-d7dadabfbf61a46996d13894ed591d057bb8c1b3.tar.bz2 PrismLauncher-d7dadabfbf61a46996d13894ed591d057bb8c1b3.zip |
List fixes
Double-click to toggle profile components.
Restore double-click to toggle resources.
Fix clicking on checkbox to select account.
Double-click to select account.
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/pages/global')
-rw-r--r-- | launcher/ui/pages/global/AccountListPage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 5c6fb092..a92e3dd9 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -85,6 +85,8 @@ AccountListPage::AccountListPage(QWidget* parent) : QMainWindow(parent), ui(new connect(selectionModel, &QItemSelectionModel::selectionChanged, [this]([[maybe_unused]] const QItemSelection& sel, [[maybe_unused]] const QItemSelection& dsel) { updateButtonStates(); }); connect(ui->listView, &VersionListView::customContextMenuRequested, this, &AccountListPage::ShowContextMenu); + connect(ui->listView, &VersionListView::activated, this, + [this](const QModelIndex& index) { m_accounts->setDefaultAccount(m_accounts->at(index.row())); }); connect(m_accounts.get(), &AccountList::listChanged, this, &AccountListPage::listChanged); connect(m_accounts.get(), &AccountList::listActivityChanged, this, &AccountListPage::listChanged); |