mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 17:18:43 +02:00
Wizard: add websocket toggle page
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// SPDX-FileCopyrightText: 2020-2022 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();
|
||||
config()->set(Config::disableWebsocket, disabled);
|
||||
|
||||
emit initialNetworkConfigured();
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user