summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-25 20:27:36 +0300
committerVika <vika@fireburn.ru>2024-08-25 20:27:36 +0300
commitbbde99efb4711de5e61aa0fb247f42e29681e581 (patch)
tree69cabd4d8d1c278ddd83f3d18f74df22533bb1c3
parent7f3c70998e6d4487a9d567c84aa2d0efac203fc7 (diff)
downloadbowl-bbde99efb4711de5e61aa0fb247f42e29681e581.tar.zst
Fix stuck buttons
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 23b7be7..b5ceccd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -165,10 +165,12 @@ impl AsyncComponent for App {
                     pack_end = &gtk::Button {
                         set_icon_name: "document-send-symbolic",
                         set_tooltip: "Send post",
+                        #[watch]
                         set_visible: model.micropub.is_some(),
+                        #[watch]
                         set_sensitive: model.submit_busy_guard.is_none(),
                         connect_clicked => Self::Input::SubmitButtonPressed,
-                    }
+                    },
                 },
 
                 #[transition = "Crossfade"]