1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

[iOS] prevent keyboard appearing automatically after switching tab in launcher

This commit is contained in:
Andrey Filipenkov 2022-09-29 12:17:37 +03:00
parent 4a7d290112
commit d1d274382c

View File

@ -84,8 +84,12 @@ MainWindow::MainWindow(QWidget * parent)
ui->tabListWidget->setCurrentIndex(0);
ui->settingsView->setDisplayList();
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);