1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Merge pull request #1012 from kambala-decapitator/ios-launcher-prevent-autofocus

prevent keyboard appearing automatically after switching tab
This commit is contained in:
Andrii Danylchenko
2022-10-01 09:18:10 +03:00
committed by GitHub

View File

@@ -90,8 +90,12 @@ MainWindow::MainWindow(QWidget * parent)
connect(ui->stackedWidgetPage2, &CModListView::extraResolutionsEnabledChanged,
ui->settingsView, &CSettingsView::fillValidResolutions);
connect(ui->tabSelectList, SIGNAL(currentRowChanged(int)),
ui->tabListWidget, SLOT(setCurrentIndex(int)));
connect(ui->tabSelectList, &QListWidget::currentRowChanged, [this](int i) {
#ifdef Q_OS_IOS
qApp->focusWidget()->clearFocus();
#endif
ui->tabListWidget->setCurrentIndex(i);
});
if(settings["launcher"]["updateOnStartup"].Bool())
UpdateDialog::showUpdateDialog(false);