mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-26 06:44:26 +03:00
feat(ui): reduced toasts timeout from 5 to 4 seconds
This commit is contained in:
parent
d85dab86fd
commit
e24f642e83
3 changed files with 3 additions and 3 deletions
|
@ -280,7 +280,7 @@ impl SimpleComponent for FirstRunApp {
|
|||
FirstRunAppMsg::Toast { title, description } => unsafe {
|
||||
let toast = adw::Toast::new(&title);
|
||||
|
||||
toast.set_timeout(5);
|
||||
toast.set_timeout(4);
|
||||
|
||||
if let Some(description) = description {
|
||||
toast.set_button_label(Some(&tr("details")));
|
||||
|
|
|
@ -1039,7 +1039,7 @@ impl App {
|
|||
pub fn toast<T: AsRef<str>>(&mut self, title: T, description: Option<T>) {
|
||||
let toast = adw::Toast::new(title.as_ref());
|
||||
|
||||
toast.set_timeout(5);
|
||||
toast.set_timeout(4);
|
||||
|
||||
if let Some(description) = description {
|
||||
toast.set_button_label(Some(&tr("details")));
|
||||
|
|
|
@ -162,7 +162,7 @@ impl SimpleAsyncComponent for PreferencesApp {
|
|||
PreferencesAppMsg::Toast { title, description } => unsafe {
|
||||
let toast = adw::Toast::new(&title);
|
||||
|
||||
toast.set_timeout(5);
|
||||
toast.set_timeout(4);
|
||||
|
||||
if let Some(description) = description {
|
||||
toast.set_button_label(Some(&tr("details")));
|
||||
|
|
Loading…
Reference in a new issue