MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / onOpenConfigFolder

Method onOpenConfigFolder

source/ControlPanelDialog.cpp:1436–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434}
1435
1436void 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
1455void ControlPanelDialog::onPageSizePresetChanged(int index) {
1456 if (index < 0 || !pageSizeCombo || !pageSizeDimLabel) return;

Callers

nothing calls this directly

Calls 1

configFilePathMethod · 0.80

Tested by

no test coverage detected