mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-27 00:35:38 -04:00
Don't send empty commands
This commit is contained in:
parent
43e1912a0a
commit
8eea3bb5bb
1 changed files with 6 additions and 2 deletions
|
@ -1250,7 +1250,11 @@ class SidebandApp(MDApp):
|
||||||
self.open_conversations(direction="right")
|
self.open_conversations(direction="right")
|
||||||
|
|
||||||
def message_send_action(self, sender=None):
|
def message_send_action(self, sender=None):
|
||||||
if not (self.attach_type != None and self.attach_path != None) and self.messages_view.ids.message_text.text == "":
|
if self.messages_view.ids.message_text.text == "":
|
||||||
|
if not (self.attach_type != None and self.attach_path != None):
|
||||||
|
return
|
||||||
|
|
||||||
|
if self.outbound_mode_command:
|
||||||
return
|
return
|
||||||
|
|
||||||
def cb(dt):
|
def cb(dt):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue