From 054c86e2d250aa409a7617e0be6c0b8e8516013b Mon Sep 17 00:00:00 2001 From: futile Date: Sun, 28 Jun 2026 15:38:19 +0100 Subject: [PATCH] show reset button only when save server ip is not the default value --- src/gui/app.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index 70fad35..ff21c02 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -286,8 +286,10 @@ impl App { .desired_width(92.0), ); ui.label("Save server IP"); - if ui.button("↺").clicked() { - self.settings.save_server_ip = String::from(ROCKSTAR_SAVE_SERVER); + if self.settings.save_server_ip != Settings::default().save_server_ip { + if ui.button("↺").clicked() { + self.settings.save_server_ip = String::from(ROCKSTAR_SAVE_SERVER); + } } }); }