mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 00:58:40 +02:00
29 lines
731 B
C++
29 lines
731 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
|
|
|
#include "PageNetworkWebsocket.h"
|
|
#include "ui_PageNetworkWebsocket.h"
|
|
#include "WalletWizard.h"
|
|
|
|
PageNetworkWebsocket::PageNetworkWebsocket(QWidget *parent)
|
|
: QWizardPage(parent)
|
|
, ui(new Ui::PageNetworkWebsocket)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
this->setCommitPage(true);
|
|
this->setButtonText(QWizard::CommitButton, "Next");
|
|
}
|
|
|
|
int PageNetworkWebsocket::nextId() const {
|
|
return WalletWizard::Page_Menu;
|
|
}
|
|
|
|
bool PageNetworkWebsocket::validatePage() {
|
|
bool disabled = ui->btn_disable->isChecked();
|
|
conf()->set(Config::disableWebsocket, disabled);
|
|
|
|
emit initialNetworkConfigured();
|
|
|
|
return true;
|
|
} |