@@ -20,31 +20,49 @@ FirstLaunchWizard::FirstLaunchWizard(AppConfigWrapper* _appconf, MainWindow* mai
2020
2121 appconf = _appconf;
2222
23+ ui->stackedWidget ->setCurrentIndex (0 );
24+
2325 QTimer::singleShot (1000 , [&]{
2426 ui->p1_icon ->startAnimation ();
2527 });
28+ ui->p1dot5_icon ->startAnimation ();
2629 ui->p2_icon ->startAnimation ();
2730 ui->p3_icon ->startAnimation ();
2831 ui->p4_icon ->startAnimation ();
2932
30-
3133 ui->stackedWidget ->setAnimation (QEasingCurve::Type::OutCirc);
3234 connect (ui->p1_next ,&QPushButton::clicked,[&]{
3335 ui->stackedWidget ->slideInIdx (1 );
3436 });
35- connect (ui->p2_next ,&QPushButton::clicked,[&]{
37+ connect (ui->p1dot5_next ,&QPushButton::clicked,[&]{
3638 ui->stackedWidget ->slideInIdx (2 );
3739 });
38- connect (ui->p3_next ,&QPushButton::clicked,[&]{
40+ connect (ui->p2_next ,&QPushButton::clicked,[&]{
3941 ui->stackedWidget ->slideInIdx (3 );
4042 });
43+ connect (ui->p3_next ,&QPushButton::clicked,[&]{
44+ ui->stackedWidget ->slideInIdx (4 );
45+ });
4146 connect (ui->p4_next ,&QPushButton::clicked,[&]{
4247 emit wizardFinished ();
4348 });
4449 connect (ui->p4_telegram ,&QPushButton::clicked,[&]{
4550 QDesktopServices::openUrl (QUrl (" https://t.me/joinchat/FTKC2A2bolHkFAyO-fuPjw" ));
4651 });
4752
53+ ui->p1dot5_mode_legacy ->setChecked (appconf->getLegacyMode ());
54+
55+ auto legacy_radio = [this ]{
56+ if (lockslot)return ;
57+ int mode = 0 ;
58+ if (ui->p1dot5_mode_a4l ->isChecked ())mode=0 ;
59+ else if (ui->p1dot5_mode_legacy ->isChecked ())mode=1 ;
60+ appconf->setLegacyMode (mode);
61+ };
62+
63+ connect (ui->p1dot5_mode_a4l ,&QRadioButton::clicked,this ,legacy_radio);
64+ connect (ui->p1dot5_mode_legacy ,&QRadioButton::clicked,this ,legacy_radio);
65+
4866 auto deviceUpdated = [this ](){
4967 if (lockslot) return ;
5068 QString absolute =
@@ -64,7 +82,6 @@ FirstLaunchWizard::FirstLaunchWizard(AppConfigWrapper* _appconf, MainWindow* mai
6482 };
6583 refreshDevices ();
6684
67-
6885 ui->p3_systray_disable ->setChecked (!appconf->getTrayMode ());
6986 ui->p3_systray_enable ->setChecked (appconf->getTrayMode ());
7087 ui->p3_systray_icon_box ->setEnabled (appconf->getTrayMode ());
0 commit comments