mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-23 14:04:19 +02:00
refactor(gui/views/list): inline delay_hide_copy_confirmation
fn added in 2ca3e05a8e
This commit is contained in:
parent
6a8ac88b67
commit
956d64aa64
1 changed files with 5 additions and 7 deletions
|
|
@ -376,9 +376,11 @@ impl List {
|
|||
self.copy_confirmation = true;
|
||||
Command::batch(vec![
|
||||
iced::clipboard::write::<Message>(err),
|
||||
Command::perform(Self::delay_hide_copy_confirmation(), |()| {
|
||||
Message::HideCopyConfirmation
|
||||
}),
|
||||
Command::perform(
|
||||
// intentional delay
|
||||
async { std::thread::sleep(std::time::Duration::from_secs(1)) },
|
||||
|()| Message::HideCopyConfirmation,
|
||||
),
|
||||
])
|
||||
}
|
||||
Message::HideCopyConfirmation => {
|
||||
|
|
@ -926,10 +928,6 @@ impl List {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
async fn delay_hide_copy_confirmation() {
|
||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
}
|
||||
}
|
||||
|
||||
fn error_view<'a>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue