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(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ viewport: 500x800
|
|||
mode: Immediate
|
||||
preset: Empty
|
||||
-----
|
||||
click at "What needs to be done?"
|
||||
click "What needs to be done?"
|
||||
type "Create the universe"
|
||||
type enter
|
||||
type "Make an apple pie"
|
||||
type enter
|
||||
expect "2 tasks left"
|
||||
click at "Create the universe"
|
||||
click "Create the universe"
|
||||
expect "1 task left"
|
||||
click at "Make an apple pie"
|
||||
click "Make an apple pie"
|
||||
expect "0 tasks left"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue