| 1434 | } |
| 1435 | |
| 1436 | void ControlPanelDialog::onOpenConfigFolder() |
| 1437 | { |
| 1438 | ShortcutManager* sm = ShortcutManager::instance(); |
| 1439 | QString configPath = sm->configFilePath(); |
| 1440 | |
| 1441 | // Get the directory containing the config file |
| 1442 | QFileInfo fileInfo(configPath); |
| 1443 | QString folderPath = fileInfo.absolutePath(); |
| 1444 | |
| 1445 | // Ensure the directory exists |
| 1446 | QDir dir(folderPath); |
| 1447 | if (!dir.exists()) { |
| 1448 | dir.mkpath("."); |
| 1449 | } |
| 1450 | |
| 1451 | // Open in file manager |
| 1452 | QDesktopServices::openUrl(QUrl::fromLocalFile(folderPath)); |
| 1453 | } |
| 1454 | |
| 1455 | void ControlPanelDialog::onPageSizePresetChanged(int index) { |
| 1456 | if (index < 0 || !pageSizeCombo || !pageSizeDimLabel) return; |
nothing calls this directly
no test coverage detected