summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-07-24 19:12:56 +0200
committerpml68 <contact@pml68.dev>2025-07-24 23:13:50 +0200
commit5f4022cb8aa2fb078617e1c166e0e79b80a25d13 (patch)
tree8515aff6a21d1498ea70e6264f833fc9c0661bb0 /src/main.rs
parentfeat: better button styling for "unsaved changes" dialog (diff)
downloadiced-builder-5f4022cb8aa2fb078617e1c166e0e79b80a25d13.tar.gz
feat: make "Copy Code" button appear on hover over the code
Diffstat (limited to '')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index aaddf1f..67d564d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,6 +10,7 @@ mod options;
mod panes;
mod types;
mod values;
+#[allow(dead_code)]
mod widget;
use std::io;
@@ -209,7 +210,7 @@ impl IcedBuilder {
}
Message::SwitchPane(pane) => self.designer_page = pane,
Message::EditorAction(action) => {
- if matches!(action, text_editor::Action::Scroll { .. }) {
+ if !action.is_edit() {
self.editor_content.perform(action);
}
}