ignore advanced values from gui in normal mode

This commit is contained in:
creating2morrow 2023-06-20 19:43:29 -04:00
parent 37bcf5a615
commit da3d180e36
3 changed files with 41 additions and 35 deletions

View file

@ -25,8 +25,8 @@ NEVidebla-EKOnomia (invisible economy)
* `sudo apt install -y libssl-dev build-essential libgpgme-dev` * `sudo apt install -y libssl-dev build-essential libgpgme-dev`
* `git clone https://github.com/creating2morrow/neveko` * `git clone https://github.com/creating2morrow/neveko`
* `cd neveko && ./scripts/build_all_and_run.sh "-- -h"` * `cd neveko && ./scripts/build_all_and_run.sh "-- -h"`
* Example to start neveko with remote stagenet node for development: * Example to start neveko with remote stagenet node / i2p proxy remote for development:
* `./scripts/build_all_and_run.sh "-- --monero-rpc-daemon http://stagenet.community.rino.io:38081 --remote-node --monero-location /path/to/monero-x86_64-linux-gnu-v0.18.2.2/ --i2p-zero-dir /path/to/i2p-zero-linux.v1.21/"` * `./scripts/build_all_and_run.sh "-- --monero-rpc-daemon http://stagenet.community.rino.io:38081 --remote-node --monero-location /path/to/monero-x86_64-linux-gnu-v0.18.2.2/ --i2p-proxy-host x.x.x.x:port --i2p-tunnels-json /path/to/manual-i2p/config/ --i2p-advanced`
* the `--monero-location` flag is needed even when using a remote node because * the `--monero-location` flag is needed even when using a remote node because
neveko has its own monero-wallet-rpc instance neveko has its own monero-wallet-rpc instance
* gui built with rust [egui](https://docs.rs/egui/latest/egui/) * gui built with rust [egui](https://docs.rs/egui/latest/egui/)

View file

@ -28,8 +28,8 @@ B -> http://c2m66oddrzozztxyzjegbdwtgbeiibq5vz2tpchmqamrzcahcfoq.b32.i2p
- /pgp.txt - public gpg signing key - /pgp.txt - public gpg signing key
- /index.txt - this page - /index.txt - this page
- /canary.txt - /canary.txt
- /download/neveko-x86_64-linux-gnu-v0.4.1-alpha.tar.bz2 - latest neveko download - /download/neveko-x86_64-linux-gnu-v0.4.2-alpha.tar.bz2 - latest neveko download
- /download/neveko-x86_64-linux-gnu-v0.4.1-alpha.tar.bz2.sig - detached sig - /download/neveko-x86_64-linux-gnu-v0.4.2-alpha.tar.bz2.sig - detached sig
NEVEKO Links (Clear) NEVEKO Links (Clear)
@ -38,9 +38,9 @@ NEVEKO Links (Clear)
git clone https://github.com/creating2morrow/neveko.git git clone https://github.com/creating2morrow/neveko.git
-----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE-----
iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZI/cIRwcY3JlYXRpbmdf iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZJIw9xwcY3JlYXRpbmdf
dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NMcGoA/3k4+EoTAHAdUNUDB1oW dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NM8moA/jvYnAos9hU3NKv6lzUn
gmbYCOJIEuXoksSmQeSgSvX2AP4iQ2a15s+/Y7Gn0HGMylq3EA6QKC2DPFANYT5L 37Q6iQupJMEUM8GVaodM+NLGAQDdSWbC/wM3VxnCRxWO8DE5bcbu9jlBfUb1QJmI
EC0vAg== DM+wAQ==
=vZ7T =zCby
-----END PGP SIGNATURE----- -----END PGP SIGNATURE-----

View file

@ -256,11 +256,14 @@ impl eframe::App for HomeApp {
ui.text_edit_singleline(&mut self.connections.monero_location) ui.text_edit_singleline(&mut self.connections.monero_location)
.labelled_by(cm_xmr_dir_label.id); .labelled_by(cm_xmr_dir_label.id);
}); });
if !self.connections.is_i2p_advanced {
ui.horizontal(|ui| { ui.horizontal(|ui| {
let cm_i2p_dir_label = ui.label("i2p-zero path: \t"); let cm_i2p_dir_label = ui.label("i2p-zero path: \t");
ui.text_edit_singleline(&mut self.connections.i2p_zero_dir) ui.text_edit_singleline(&mut self.connections.i2p_zero_dir)
.labelled_by(cm_i2p_dir_label.id); .labelled_by(cm_i2p_dir_label.id);
}); });
}
if self.connections.is_i2p_advanced {
ui.horizontal(|ui| { ui.horizontal(|ui| {
let cm_i2p_proxy_label = ui.label("i2p proxy host: \t"); let cm_i2p_proxy_label = ui.label("i2p proxy host: \t");
ui.text_edit_singleline(&mut self.connections.i2p_proxy_host) ui.text_edit_singleline(&mut self.connections.i2p_proxy_host)
@ -271,6 +274,7 @@ impl eframe::App for HomeApp {
ui.text_edit_singleline(&mut self.connections.i2p_tunnels_json) ui.text_edit_singleline(&mut self.connections.i2p_tunnels_json)
.labelled_by(cm_i2p_tunnels_label.id); .labelled_by(cm_i2p_tunnels_label.id);
}); });
}
let mut is_remote_node = self.connections.is_remote_node; let mut is_remote_node = self.connections.is_remote_node;
if ui.checkbox(&mut is_remote_node, "remote node").changed() { if ui.checkbox(&mut is_remote_node, "remote node").changed() {
self.connections.is_remote_node = !self.connections.is_remote_node; self.connections.is_remote_node = !self.connections.is_remote_node;
@ -293,6 +297,7 @@ impl eframe::App for HomeApp {
self.is_editing_connections = false; self.is_editing_connections = false;
utils::kill_child_processes(true); utils::kill_child_processes(true);
utils::start_core(&self.connections); utils::start_core(&self.connections);
if self.connections.is_i2p_advanced {
// set the i2p proxy host for advanced user re-use // set the i2p proxy host for advanced user re-use
std::env::set_var( std::env::set_var(
neveko_core::NEVEKO_I2P_PROXY_HOST, neveko_core::NEVEKO_I2P_PROXY_HOST,
@ -303,6 +308,7 @@ impl eframe::App for HomeApp {
self.connections.i2p_tunnels_json.clone(), self.connections.i2p_tunnels_json.clone(),
); );
std::env::set_var(neveko_core::NEVEKO_I2P_ADVANCED_MODE, String::from("1")); std::env::set_var(neveko_core::NEVEKO_I2P_ADVANCED_MODE, String::from("1"));
}
self.is_loading = true; self.is_loading = true;
start_core_timeout(self.core_timeout_tx.clone(), ctx.clone()); start_core_timeout(self.core_timeout_tx.clone(), ctx.clone());
} }