Include a VFS manipulation dialog (#2863)

* VFS Dialog
* Couple convenience changes. Refresh after dialog in case dev_hdd0 changes.  And, have add directory set which directory you're currently using as well.
This commit is contained in:
Robbie 2017-06-15 03:22:06 -07:00 committed by kd-11
parent d6e4566418
commit f84f4ccd38
11 changed files with 374 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <QDesktopWidget>
#include <QDesktopServices>
#include "vfs_dialog.h"
#include "save_data_utility.h"
#include "kernel_explorer.h"
#include "game_list_frame.h"
@ -992,6 +993,8 @@ void main_window::CreateActions()
confAutopauseManagerAct = new QAction(tr("&Auto Pause Settings"), this);
confAutopauseManagerAct->setEnabled(false);
confVFSDialogAct = new QAction(tr("Virtual File System"), this);
confSavedataManagerAct = new QAction(tr("Save &Data Utility"), this);
confSavedataManagerAct->setEnabled(false);
@ -1149,6 +1152,11 @@ void main_window::CreateConnects()
auto_pause_settings_dialog dlg(this);
dlg.exec();
});
connect(confVFSDialogAct, &QAction::triggered, [=]() {
vfs_dialog dlg(this);
dlg.exec();
gameListFrame->Refresh(true); // dev-hdd0 may have changed. Refresh just in case.
});
connect(confSavedataManagerAct, &QAction::triggered, [=](){
save_data_list_dialog* sdid = new save_data_list_dialog(this, true);
sdid->show();
@ -1290,6 +1298,7 @@ void main_window::CreateMenus()
confMenu->addAction(confPadAct);
confMenu->addSeparator();
confMenu->addAction(confAutopauseManagerAct);
confMenu->addAction(confVFSDialogAct);
confMenu->addSeparator();
confMenu->addAction(confSavedataManagerAct);