From now on, if you try to leave setup without making any change, you won't be prompted whether to save configuration or not

This commit is contained in:
veeso
2021-07-16 15:32:39 +02:00
parent 59c6567ff3
commit e1109fff15
5 changed files with 57 additions and 9 deletions
+3 -1
View File
@@ -111,7 +111,9 @@ impl SetupActivity {
.with_inverted_color(Color::Black)
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightRed)
.with_options(
Some(String::from("Exit setup?")),
Some(String::from(
"There are unsaved changes! Save changes before leaving?",
)),
vec![
String::from("Save"),
String::from("Don't save"),