Open File Browser on Media Insert (option) (#20151)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Thomas Niccolo Reyes
2020-11-18 12:30:32 +08:00
committed by GitHub
parent 5768ee0f9e
commit ecd8227de0
9 changed files with 25 additions and 16 deletions

View File

@@ -152,19 +152,17 @@ void Password::menu_password_report() {
END_SCREEN();
}
void Password::set_password_done() {
is_set = true;
void Password::set_password_done(const bool with_set/*=true*/) {
is_set = with_set;
value = value_entry;
ui.completion_feedback(true);
ui.goto_screen(menu_password_report);
}
void Password::remove_password() {
is_set = false;
string[0] = '0';
string[1] = '\0';
ui.completion_feedback(true);
ui.goto_screen(menu_password_report);
set_password_done(false);
}
//