mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Save manager improvements (#3631)
* Make size of manager only 60% of screen height initially at most. * Add ability to delete/select multiple entries. * Add ability to open up save dir and fix how it's done in game_list_frame. * Make delete much cleaner.
This commit is contained in:
parent
dbf1573e89
commit
779ed75a19
3 changed files with 63 additions and 22 deletions
|
@ -19,7 +19,6 @@
|
|||
#include <QListView>
|
||||
#include <QMenuBar>
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include <QUrl>
|
||||
#include <QLabel>
|
||||
|
@ -547,17 +546,7 @@ static void open_dir(const std::string& spath)
|
|||
{
|
||||
fs::create_dir(spath);
|
||||
QString path = qstr(spath);
|
||||
QProcess* process = new QProcess();
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string command = "explorer";
|
||||
std::replace(path.begin(), path.end(), '/', '\\');
|
||||
process->start("explorer", QStringList() << path);
|
||||
#elif __APPLE__
|
||||
process->start("open", QStringList() << path);
|
||||
#else
|
||||
process->start("xdg-open", QStringList() << path);
|
||||
#endif
|
||||
QDesktopServices::openUrl(QUrl("file:///" + path));
|
||||
}
|
||||
|
||||
void game_list_frame::doubleClickedSlot(const QModelIndex& index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue