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>
|
</property>
|
||||||
<addaction name="actionAbout_Porymap"/>
|
<addaction name="actionAbout_Porymap"/>
|
||||||
<addaction name="actionOpen_Log_File"/>
|
<addaction name="actionOpen_Log_File"/>
|
||||||
|
<addaction name="actionOpen_Config_Folder"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuOptions">
|
<widget class="QMenu" name="menuOptions">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@ -2950,6 +2951,11 @@
|
||||||
<string>Open Log File</string>
|
<string>Open Log File</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionOpen_Config_Folder">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open Config Folder</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
|
|
@ -223,6 +223,7 @@ private slots:
|
||||||
void on_toolButton_CollapseAll_clicked();
|
void on_toolButton_CollapseAll_clicked();
|
||||||
void on_actionAbout_Porymap_triggered();
|
void on_actionAbout_Porymap_triggered();
|
||||||
void on_actionOpen_Log_File_triggered();
|
void on_actionOpen_Log_File_triggered();
|
||||||
|
void on_actionOpen_Config_Folder_triggered();
|
||||||
void on_pushButton_AddCustomHeaderField_clicked();
|
void on_pushButton_AddCustomHeaderField_clicked();
|
||||||
void on_pushButton_DeleteCustomHeaderField_clicked();
|
void on_pushButton_DeleteCustomHeaderField_clicked();
|
||||||
void on_tableWidget_CustomHeaderFields_cellChanged(int row, int column);
|
void on_tableWidget_CustomHeaderFields_cellChanged(int row, int column);
|
||||||
|
|
|
@ -85,6 +85,7 @@ void MainWindow::setWindowDisabled(bool disabled) {
|
||||||
ui->menuHelp->setDisabled(false);
|
ui->menuHelp->setDisabled(false);
|
||||||
ui->actionAbout_Porymap->setDisabled(false);
|
ui->actionAbout_Porymap->setDisabled(false);
|
||||||
ui->actionOpen_Log_File->setDisabled(false);
|
ui->actionOpen_Log_File->setDisabled(false);
|
||||||
|
ui->actionOpen_Config_Folder->setDisabled(false);
|
||||||
if (!disabled)
|
if (!disabled)
|
||||||
togglePreferenceSpecificUi();
|
togglePreferenceSpecificUi();
|
||||||
}
|
}
|
||||||
|
@ -2698,6 +2699,10 @@ void MainWindow::on_actionOpen_Log_File_triggered() {
|
||||||
editor->openInTextEditor(logPath, lineCount);
|
editor->openInTextEditor(logPath, lineCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionOpen_Config_Folder_triggered() {
|
||||||
|
QDesktopServices::openUrl(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionEdit_Preferences_triggered() {
|
void MainWindow::on_actionEdit_Preferences_triggered() {
|
||||||
if (!preferenceEditor) {
|
if (!preferenceEditor) {
|
||||||
preferenceEditor = new PreferenceEditor(this);
|
preferenceEditor = new PreferenceEditor(this);
|
||||||
|
|
Loading…
Reference in a new issue