Show menu when clicking icon for collection and internet search tool buttons

This commit is contained in:
Jonas Kvinge 2022-01-10 22:51:27 +01:00
parent 4509a07fff
commit 1cc2e6303a
2 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,7 @@ CollectionFilterWidget::CollectionFilterWidget(QWidget *parent)
ui_->options->setMenu(collection_menu_);
QObject::connect(ui_->search_field, &QSearchField::textChanged, this, &CollectionFilterWidget::FilterTextChanged);
QObject::connect(ui_->options, &QToolButton::clicked, ui_->options, &QToolButton::showMenu);
ReloadSettings();

View File

@ -208,6 +208,8 @@ void InternetSearchView::Init(Application *app, InternetService *service) {
QObject::connect(app_, &Application::SettingsChanged, this, &InternetSearchView::ReloadSettings);
QObject::connect(app_->album_cover_loader(), &AlbumCoverLoader::AlbumCoverLoaded, this, &InternetSearchView::AlbumCoverLoaded);
QObject::connect(ui_->settings, &QToolButton::clicked, ui_->settings, &QToolButton::showMenu);
ReloadSettings();
}