Skip to content

Commit

Permalink
Remove Iced workaround that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Sep 27, 2024
1 parent 0067872 commit cec0045
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/gui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,6 @@ impl App {
return (None, None);
}
if cancel_flag.load(std::sync::atomic::Ordering::Relaxed) {
// TODO: https://github.com/hecrj/iced/issues/436
std::thread::sleep(Duration::from_millis(1));
return (None, None);
}

Expand Down Expand Up @@ -775,8 +773,6 @@ impl App {
let mut layout = layout.game_layout(&name);

if cancel_flag.load(std::sync::atomic::Ordering::Relaxed) {
// TODO: https://github.com/hecrj/iced/issues/436
std::thread::sleep(Duration::from_millis(1));
return (None, None, layout);
}

Expand Down Expand Up @@ -987,8 +983,6 @@ impl App {
self.operation_steps.push(Task::perform(
async move {
if cancel_flag.load(std::sync::atomic::Ordering::Relaxed) {
// TODO: https://github.com/hecrj/iced/issues/436
std::thread::sleep(Duration::from_millis(1));
return (name, true);
}

Expand Down

0 comments on commit cec0045

Please sign in to comment.