Remove at from mouse instructions in Ice syntax

This commit is contained in:
Héctor Ramón Jiménez 2025-09-20 17:33:57 +02:00
parent 364b68f030
commit 79d501f9a5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 89 additions and 52 deletions

View file

@ -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(())
}

View file

@ -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"