Add option to open config folder
This commit is contained in:
parent
2c065ae5b6
commit
3d394bc4bb
3 changed files with 12 additions and 0 deletions
|
@ -2650,6 +2650,7 @@
|
|||
</property>
|
||||
<addaction name="actionAbout_Porymap"/>
|
||||
<addaction name="actionOpen_Log_File"/>
|
||||
<addaction name="actionOpen_Config_Folder"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuOptions">
|
||||
<property name="title">
|
||||
|
@ -2950,6 +2951,11 @@
|
|||
<string>Open Log File</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen_Config_Folder">
|
||||
<property name="text">
|
||||
<string>Open Config Folder</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
|
|
@ -223,6 +223,7 @@ private slots:
|
|||
void on_toolButton_CollapseAll_clicked();
|
||||
void on_actionAbout_Porymap_triggered();
|
||||
void on_actionOpen_Log_File_triggered();
|
||||
void on_actionOpen_Config_Folder_triggered();
|
||||
void on_pushButton_AddCustomHeaderField_clicked();
|
||||
void on_pushButton_DeleteCustomHeaderField_clicked();
|
||||
void on_tableWidget_CustomHeaderFields_cellChanged(int row, int column);
|
||||
|
|
|
@ -85,6 +85,7 @@ void MainWindow::setWindowDisabled(bool disabled) {
|
|||
ui->menuHelp->setDisabled(false);
|
||||
ui->actionAbout_Porymap->setDisabled(false);
|
||||
ui->actionOpen_Log_File->setDisabled(false);
|
||||
ui->actionOpen_Config_Folder->setDisabled(false);
|
||||
if (!disabled)
|
||||
togglePreferenceSpecificUi();
|
||||
}
|
||||
|
@ -2698,6 +2699,10 @@ void MainWindow::on_actionOpen_Log_File_triggered() {
|
|||
editor->openInTextEditor(logPath, lineCount);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpen_Config_Folder_triggered() {
|
||||
QDesktopServices::openUrl(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionEdit_Preferences_triggered() {
|
||||
if (!preferenceEditor) {
|
||||
preferenceEditor = new PreferenceEditor(this);
|
||||
|
|
Loading…
Reference in a new issue