wip
This commit is contained in:
+7
-5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user