summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-03-23 16:23:17 +0100
committerpml68 <contact@pml68.dev>2025-03-23 16:23:17 +0100
commit6a5a2b627cb8b588fe78463f218fd860fb78cd35 (patch)
treefb345030d03e99d0486e0abd77674c900b3dd58b /src/main.rs
parentci: add caching, use mold for linking (diff)
downloadiced-builder-6a5a2b627cb8b588fe78463f218fd860fb78cd35.tar.gz
fix(iced_drop): support reactive rendering
Diffstat (limited to '')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 336378e..e566ed5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -350,7 +350,7 @@ impl App {
}
fn subscription(&self) -> iced::Subscription<Message> {
- let hotkeys = keyboard::on_key_press(|key, modifiers| {
+ keyboard::on_key_press(|key, modifiers| {
if modifiers.command() {
match key.as_ref() {
keyboard::Key::Character("o") => Some(Message::OpenFile),
@@ -367,9 +367,7 @@ impl App {
} else {
None
}
- });
-
- hotkeys
+ })
}
fn view(&self) -> Element<'_, Message> {