1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +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
commit 99502c97d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);