This commit is contained in:
2025-09-30 23:51:12 +03:00
parent 9b1dc672a9
commit 6240208c17
4 changed files with 633 additions and 215 deletions
+7 -5
View File
@@ -29,8 +29,9 @@ use alfis::{dns_utils, Block, Bytes, Chain, Context, Keystore, Miner, Network, S
#[cfg(windows)]
use crate::win_service::start_service;
#[cfg(feature = "webgui")]
mod web_ui;
// #[cfg(feature = "webgui")]
// mod web_ui;
mod ui;
#[cfg(windows)]
mod win_service;
@@ -142,7 +143,7 @@ fn main() {
};
let mut no_gui = opt_matches.opt_present("n");
if !cfg!(feature = "webgui")
if !cfg!(feature = "gui")
{
no_gui = true;
}
@@ -250,8 +251,9 @@ fn main() {
post(Event::Error { text: String::from("Error starting DNS-server. Please, check that it’s port is not busy.") });
});
}
#[cfg(feature = "webgui")]
web_ui::run_interface(Arc::clone(&context), miner);
// #[cfg(feature = "webgui")]
// web_ui::run_interface(Arc::clone(&context), miner);
ui::run_ui(Arc::clone(&context), miner);
}
// Without explicitly detaching the console cmd won't redraw it's prompt.