| 3165 | } |
| 3166 | |
| 3167 | void MainWindow::doSettings(const char* category /* = nullptr */) |
| 3168 | { |
| 3169 | SettingsWindow* dlg = getSettingsWindow(); |
| 3170 | if (!dlg->isVisible()) |
| 3171 | { |
| 3172 | dlg->show(); |
| 3173 | } |
| 3174 | else |
| 3175 | { |
| 3176 | dlg->raise(); |
| 3177 | dlg->activateWindow(); |
| 3178 | dlg->setFocus(); |
| 3179 | } |
| 3180 | |
| 3181 | if (category) |
| 3182 | dlg->setCategory(category); |
| 3183 | } |
| 3184 | |
| 3185 | void MainWindow::doGameSettings(const char* category) |
| 3186 | { |
no test coverage detected