From c0161010fa63db55a807288c787de7ea2a32d226 Mon Sep 17 00:00:00 2001
From: hinto-janaiyo <hinto.janaiyo@protonmail.com>
Date: Thu, 22 Dec 2022 21:58:09 -0500
Subject: [PATCH] p2pool: fix custom node selection sometimes using old values

---
 CHANGELOG.md  | 7 +++----
 src/p2pool.rs | 6 +++++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 362865e..ea157fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,9 +1,8 @@
 # v1.0.1
-## Updates
-*
-
 ## Fixes
-*
+* macOS: Added warning (and solution) if `Gupax/P2Pool/XMRig` were quarantined by [`Gatekeeper`](https://support.apple.com/en-us/HT202491)
+* P2Pool: Fixed custom node selection sometimes using old values after save
+* Miscellaneous UI changes
 
 ## Bundled Versions
 * [`P2Pool v2.6`](https://github.com/SChernykh/p2pool/releases/tag/v2.6)
diff --git a/src/p2pool.rs b/src/p2pool.rs
index 1d91ac9..e85338e 100644
--- a/src/p2pool.rs
+++ b/src/p2pool.rs
@@ -378,6 +378,10 @@ impl P2pool {
 							zmq: self.zmq.clone(),
 						};
 						node_vec[existing_index].1 = node;
+						self.selected_index = existing_index;
+						self.selected_ip = self.ip.clone();
+						self.selected_rpc = self.rpc.clone();
+						self.selected_zmq = self.zmq.clone();
 						info!("Node | S | [index: {}, name: \"{}\", ip: \"{}\", rpc: {}, zmq: {}]", existing_index+1, self.name, self.ip, self.rpc, self.zmq);
 					}
 				// Else, add to the list
@@ -459,7 +463,7 @@ impl P2pool {
 			let text = (ui.available_width()/10.0)-SPACE;
 			let width = (text*8.0)-SPACE;
 			let height = height/3.0;
-			ui.style_mut().spacing.slider_width = width/1.2;
+			ui.style_mut().spacing.slider_width = width/1.1;
 			ui.style_mut().spacing.interact_size.y = height;
 			ui.style_mut().override_text_style = Some(Name("MonospaceSmall".into()));
 			ui.horizontal(|ui| {