mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Rewind radio groups
This commit is contained in:
@@ -111,6 +111,7 @@ impl AuthActivity {
|
|||||||
.with_title("Protocol", Alignment::Left)
|
.with_title("Protocol", Alignment::Left)
|
||||||
.with_options(&["SFTP", "SCP", "FTP", "FTPS"])
|
.with_options(&["SFTP", "SCP", "FTP", "FTPS"])
|
||||||
.with_value(Self::protocol_enum_to_opt(default_protocol))
|
.with_value(Self::protocol_enum_to_opt(default_protocol))
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -532,6 +533,7 @@ impl AuthActivity {
|
|||||||
.with_inverted_color(Color::Black)
|
.with_inverted_color(Color::Black)
|
||||||
.with_title("Quit termscp?", Alignment::Center)
|
.with_title("Quit termscp?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -560,6 +562,7 @@ impl AuthActivity {
|
|||||||
.with_title("Delete bookmark?", Alignment::Center)
|
.with_title("Delete bookmark?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
.with_value(1)
|
.with_value(1)
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -591,6 +594,7 @@ impl AuthActivity {
|
|||||||
.with_title("Delete bookmark?", Alignment::Center)
|
.with_title("Delete bookmark?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
.with_value(1)
|
.with_value(1)
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -637,6 +641,7 @@ impl AuthActivity {
|
|||||||
)
|
)
|
||||||
.with_title("Save password?", Alignment::Center)
|
.with_title("Save password?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -469,6 +469,7 @@ impl FileTransferActivity {
|
|||||||
.with_borders(Borders::ALL, BorderType::Rounded, quit_color)
|
.with_borders(Borders::ALL, BorderType::Rounded, quit_color)
|
||||||
.with_title("Are you sure you want to quit?", Alignment::Center)
|
.with_title("Are you sure you want to quit?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -497,6 +498,7 @@ impl FileTransferActivity {
|
|||||||
.with_borders(Borders::ALL, BorderType::Rounded, quit_color)
|
.with_borders(Borders::ALL, BorderType::Rounded, quit_color)
|
||||||
.with_title("Are you sure you want to disconnect?", Alignment::Center)
|
.with_title("Are you sure you want to disconnect?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -812,6 +814,7 @@ impl FileTransferActivity {
|
|||||||
.with_title("Delete file", Alignment::Center)
|
.with_title("Delete file", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
.with_value(1)
|
.with_value(1)
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ impl SetupActivity {
|
|||||||
String::from("Don't save"),
|
String::from("Don't save"),
|
||||||
String::from("Cancel"),
|
String::from("Cancel"),
|
||||||
])
|
])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -147,6 +148,7 @@ impl SetupActivity {
|
|||||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
||||||
.with_title("Save changes?", Alignment::Center)
|
.with_title("Save changes?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -175,6 +177,7 @@ impl SetupActivity {
|
|||||||
String::from("Theme"),
|
String::from("Theme"),
|
||||||
])
|
])
|
||||||
.with_value(idx)
|
.with_value(idx)
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ impl SetupActivity {
|
|||||||
String::from("FTP"),
|
String::from("FTP"),
|
||||||
String::from("FTPS"),
|
String::from("FTPS"),
|
||||||
])
|
])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -99,6 +100,7 @@ impl SetupActivity {
|
|||||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightRed)
|
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightRed)
|
||||||
.with_title("Show hidden files (by default)?", Alignment::Left)
|
.with_title("Show hidden files (by default)?", Alignment::Left)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -111,6 +113,7 @@ impl SetupActivity {
|
|||||||
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
.with_borders(Borders::ALL, BorderType::Rounded, Color::LightYellow)
|
||||||
.with_title("Check for updates?", Alignment::Left)
|
.with_title("Check for updates?", Alignment::Left)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -127,6 +130,7 @@ impl SetupActivity {
|
|||||||
String::from("Display Last"),
|
String::from("Display Last"),
|
||||||
String::from("No"),
|
String::from("No"),
|
||||||
])
|
])
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ impl SetupActivity {
|
|||||||
.with_title("Delete key?", Alignment::Center)
|
.with_title("Delete key?", Alignment::Center)
|
||||||
.with_options(&[String::from("Yes"), String::from("No")])
|
.with_options(&[String::from("Yes"), String::from("No")])
|
||||||
.with_value(1) // Default: No
|
.with_value(1) // Default: No
|
||||||
|
.rewind(true)
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user