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:
+3
-7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user