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:
Robbie 2017-10-24 10:09:38 -05:00 committed by kd-11
parent dbf1573e89
commit 779ed75a19
3 changed files with 63 additions and 22 deletions

View file

@ -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)