summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ce90fec..015f230 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -371,6 +371,10 @@ impl AsyncComponent for PostComposerModel {
                 self.summary_buffer.insert_text(self.summary_buffer.length(), text);
             },
             PostComposerInput::Submit => {
+                if self.content_buffer.char_count() == 0 {
+                    self.update_view(widgets, sender);
+                    return
+                }
                 self.set_submit_busy_guard(
                     Some(relm4::main_adw_application().mark_busy())
                 );