Remove at from mouse instructions in Ice syntax
This commit is contained in:
parent
364b68f030
commit
79d501f9a5
5 changed files with 89 additions and 52 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use iced::keyboard;
|
||||
use iced::time::milliseconds;
|
||||
use iced::widget::{
|
||||
self, Text, button, center, center_x, checkbox, column, keyed_column,
|
||||
operation, row, scrollable, text, text_input,
|
||||
|
|
@ -544,8 +545,8 @@ impl SavedState {
|
|||
.map_err(|_| SaveError::Write)?;
|
||||
}
|
||||
|
||||
// This is a simple way to save at most once every couple seconds
|
||||
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
|
||||
// This is a simple way to save at most twice every second
|
||||
tokio::time::sleep(milliseconds(500)).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue