diff options
Diffstat (limited to 'src/src/mainwindow.cpp')
| -rw-r--r-- | src/src/mainwindow.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/src/mainwindow.cpp b/src/src/mainwindow.cpp index acdde48..e3cb1e4 100644 --- a/src/src/mainwindow.cpp +++ b/src/src/mainwindow.cpp @@ -2821,15 +2821,8 @@ void MainWindow::openPluginsFolder() void MainWindow::openStylesheetsFolder() { - // Open the instance's stylesheets directory (where custom themes from - // modlists live), or the user data dir as fallback. - QString ssPath; - if (auto ci = InstanceManager::singleton().currentInstance()) { - ssPath = - ci->directory() + "/" + QString::fromStdWString(AppConfig::stylesheetsPath()); - } else { - ssPath = fluorineDataDir() + "/stylesheets"; - } + const QString ssPath = QCoreApplication::applicationDirPath() + "/" + + QString::fromStdWString(AppConfig::stylesheetsPath()); QDir().mkpath(ssPath); shell::Explore(ssPath); } |
