1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 20:47:45 +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:
Joshua Goins 2022-03-16 14:40:55 -04:00
parent 8408a2b154
commit 0dd708096f

View file

@ -7,6 +7,8 @@
#include <QMessageBox>
#include <QJsonDocument>
#include <QJsonObject>
#include <QPushButton>
#include <QDesktopServices>
#include "launchercore.h"
@ -113,7 +115,13 @@ void SquareLauncher::login(const LoginInformation& info, const QUrl referer) {
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.");
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();