mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
When out of subscription or need a license, point to Mog Station
Pointing to the official launcher makes no sense because you can't even do it within there anyway.
This commit is contained in:
parent
8408a2b154
commit
0dd708096f
1 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,8 @@
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QDesktopServices>
|
||||||
|
|
||||||
#include "launchercore.h"
|
#include "launchercore.h"
|
||||||
|
|
||||||
|
@ -113,7 +115,13 @@ void SquareLauncher::login(const LoginInformation& info, const QUrl referer) {
|
||||||
|
|
||||||
if(!playable) {
|
if(!playable) {
|
||||||
auto messageBox = new QMessageBox(QMessageBox::Icon::Critical, "Failed to Login", "Your game is unplayable. Please check that you have the right license selected, and a subscription to play.");
|
auto messageBox = new QMessageBox(QMessageBox::Icon::Critical, "Failed to Login", "Your game is unplayable. Please check that you have the right license selected, and a subscription to play.");
|
||||||
window.addUpdateButtons(*info.settings, *messageBox);
|
|
||||||
|
auto launcherButton = messageBox->addButton("Open Mog Station", QMessageBox::HelpRole);
|
||||||
|
connect(launcherButton, &QPushButton::clicked, [=] {
|
||||||
|
QDesktopServices::openUrl(QUrl("https://sqex.to/Msp"));
|
||||||
|
});
|
||||||
|
|
||||||
|
messageBox->addButton(QMessageBox::StandardButton::Ok);
|
||||||
|
|
||||||
messageBox->show();
|
messageBox->show();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue