mirror of
https://github.com/veeso/termscp.git
synced 2026-04-05 09:41:53 -07:00
Rewind radio groups
This commit is contained in:
@@ -120,6 +120,7 @@ impl SetupActivity {
|
||||
String::from("Don't save"),
|
||||
String::from("Cancel"),
|
||||
])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
@@ -147,6 +148,7 @@ impl SetupActivity {
|
||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
||||
.with_title("Save changes?", Alignment::Center)
|
||||
.with_options(&[String::from("Yes"), String::from("No")])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
@@ -175,6 +177,7 @@ impl SetupActivity {
|
||||
String::from("Theme"),
|
||||
])
|
||||
.with_value(idx)
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
|
||||
@@ -87,6 +87,7 @@ impl SetupActivity {
|
||||
String::from("FTP"),
|
||||
String::from("FTPS"),
|
||||
])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
@@ -99,6 +100,7 @@ impl SetupActivity {
|
||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightRed)
|
||||
.with_title("Show hidden files (by default)?", Alignment::Left)
|
||||
.with_options(&[String::from("Yes"), String::from("No")])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
@@ -111,6 +113,7 @@ impl SetupActivity {
|
||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
||||
.with_title("Check for updates?", Alignment::Left)
|
||||
.with_options(&[String::from("Yes"), String::from("No")])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
@@ -127,6 +130,7 @@ impl SetupActivity {
|
||||
String::from("Display Last"),
|
||||
String::from("No"),
|
||||
])
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
|
||||
@@ -182,6 +182,7 @@ impl SetupActivity {
|
||||
.with_title("Delete key?", Alignment::Center)
|
||||
.with_options(&[String::from("Yes"), String::from("No")])
|
||||
.with_value(1) // Default: No
|
||||
.rewind(true)
|
||||
.build(),
|
||||
)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user