Rework the wizard APK downloading, install directly instead of telling the user to use ADB. Add setting to choose which game to start automatically.

This commit is contained in:
Guillaume Meunier
2024-10-10 23:26:09 +02:00
parent 2bb1f8278c
commit 26d271b907
23 changed files with 1809 additions and 769 deletions
+3 -7
View File
@@ -25,13 +25,9 @@
#include <QTranslator>
#include "main_window.h"
#include "version.h"
#include "wizard.h"
namespace wivrn
{
extern const char git_version[];
}
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
@@ -63,13 +59,13 @@ int main(int argc, char * argv[])
auto main = std::make_unique<main_window>();
QSettings settings;
if (settings.value("first_run", true).toBool())
if (settings.value("wizard/first_run", true).toBool())
{
wizard_window.reset(new wizard);
wizard_window->show();
QObject::connect(wizard_window.get(), &QWizard::finished, [&](int value) {
settings.setValue("first_run", false);
settings.setValue("wizard/first_run", false);
wizard_window.release()->deleteLater();
main->show();