mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 01:00:22 +00:00
Split MultiMC up into a few separate libraries.
Fixed plugin system. Tons of other stuff...
This commit is contained in:
@@ -21,20 +21,25 @@
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include <QFileInfo>
|
||||
|
||||
#include "util/osutils.h"
|
||||
#include "osutils.h"
|
||||
|
||||
#include "gui/settingsdialog.h"
|
||||
#include "gui/newinstancedialog.h"
|
||||
#include "gui/logindialog.h"
|
||||
#include "gui/taskdialog.h"
|
||||
|
||||
#include "data/inst/instancelist.h"
|
||||
#include "data/appsettings.h"
|
||||
#include "instancelist.h"
|
||||
#include "appsettings.h"
|
||||
#include "data/version.h"
|
||||
|
||||
#include "tasks/logintask.h"
|
||||
|
||||
// Opens the given file in the default application.
|
||||
// TODO: Move this somewhere.
|
||||
void openInDefaultProgram(QString filename);
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::MainWindow),
|
||||
@@ -156,3 +161,8 @@ void MainWindow::onLoginComplete(LoginResponse response)
|
||||
QString("Logged in as %1 with session ID %2.").
|
||||
arg(response.getUsername(), response.getSessionID()));
|
||||
}
|
||||
|
||||
void openInDefaultProgram(QString filename)
|
||||
{
|
||||
QDesktopServices::openUrl("file:///" + QFileInfo(filename).absolutePath());
|
||||
}
|
||||
|
Reference in New Issue
Block a user