ui fixes
This commit is contained in:
parent
4ba964db47
commit
d4c0e519d9
2 changed files with 26 additions and 14 deletions
|
@ -185,6 +185,15 @@ void MainWindow::goToPage(Page page, bool reset, bool slide)
|
|||
}
|
||||
if (page == Page::ShareConnection) {
|
||||
|
||||
}
|
||||
if (page == Page::Wizard) {
|
||||
ui->radioButton_setup_wizard_medium->setChecked(true);
|
||||
}
|
||||
if (page == Page::WizardHigh) {
|
||||
ui->lineEdit_setup_wizard_high_website_masking->setText(protocols::cloak::defaultRedirSite);
|
||||
}
|
||||
if (page == Page::ServerConfiguring) {
|
||||
ui->progressBar_new_server_configuring->setValue(0);
|
||||
}
|
||||
if (page == Page::ServersList) {
|
||||
updateServersListPage();
|
||||
|
@ -1041,8 +1050,8 @@ void MainWindow::setupWizardConnections()
|
|||
connect(ui->pushButton_new_server_advanced, &QPushButton::clicked, this, [this](){ goToPage(Page::NewServerProtocols); });
|
||||
connect(ui->pushButton_setup_wizard_next, &QPushButton::clicked, this, [this](){
|
||||
if (ui->radioButton_setup_wizard_high->isChecked()) goToPage(Page::WizardHigh);
|
||||
if (ui->radioButton_setup_wizard_medium->isChecked()) goToPage(Page::WizardMedium);
|
||||
if (ui->radioButton_setup_wizard_low->isChecked()) goToPage(Page::WizardLow);
|
||||
else if (ui->radioButton_setup_wizard_medium->isChecked()) goToPage(Page::WizardMedium);
|
||||
else if (ui->radioButton_setup_wizard_low->isChecked()) goToPage(Page::WizardLow);
|
||||
});
|
||||
|
||||
connect(ui->pushButton_setup_wizard_high_next, &QPushButton::clicked, this, [this](){
|
||||
|
@ -1070,6 +1079,10 @@ void MainWindow::setupWizardConnections()
|
|||
connect(ui->pushButton_setup_wizard_low_finish, &QPushButton::clicked, this, [this](){
|
||||
installServer(getInstallConfigsFromWizardPage());
|
||||
});
|
||||
|
||||
connect(ui->lineEdit_setup_wizard_high_website_masking, &QLineEdit::returnPressed, this, [this](){
|
||||
ui->pushButton_setup_wizard_high_next->click();
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::setupAppSettingsConnections()
|
||||
|
@ -1097,7 +1110,6 @@ void MainWindow::setupAppSettingsConnections()
|
|||
Debug::openLogsFolder();
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(Utils::systemLogPath()));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::setupGeneralSettingsConnections()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue