mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-07 18:15:51 +08:00
refs #209, open directory of settings file in startup GUI
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
#include "ui_introwindow.h"
|
||||
#include "blackcore/dbus_server.h"
|
||||
#include "blackmisc/networkutils.h"
|
||||
#include "blackmisc/settingutilities.h"
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include <QDir>
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
@@ -70,4 +72,9 @@ void CIntroWindow::buttonClicked() const
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://dev.vatsim-germany.org/", QUrl::TolerantMode));
|
||||
}
|
||||
else if (sender == this->ui->pb_SettingsDir)
|
||||
{
|
||||
QString path = QDir::toNativeSeparators(BlackMisc::Settings::CSettingUtilities::getSettingsDirectory());
|
||||
QDesktopServices::openUrl(QUrl("file:///" + path));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user