FIx tidal search field not showing on macOS

This commit is contained in:
Jonas Kvinge 2021-04-10 09:56:59 +02:00
parent c7bc9d471a
commit 4983c1cfc9
1 changed files with 4 additions and 0 deletions

View File

@ -252,6 +252,7 @@ void InternetSearchView::ReloadSettings() {
s.beginGroup(AppearanceSettingsPage::kSettingsGroup);
int iconsize = s.value(AppearanceSettingsPage::kIconSizeConfigureButtons, 20).toInt();
s.endGroup();
ui_->settings->setIconSize(QSize(iconsize, iconsize));
ui_->search->setIconSize(iconsize);
@ -260,7 +261,10 @@ void InternetSearchView::ReloadSettings() {
void InternetSearchView::showEvent(QShowEvent *e) {
QWidget::showEvent(e);
#ifndef Q_OS_MACOS
FocusSearchField();
#endif
}