Skip to content

Commit

Permalink
if no message then return
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Mar 18, 2024
1 parent 5efc3cd commit ffa813b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rp4/gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import sys
from typing import Optional

import markdown2
from PyQt6.QtCore import QThread, pyqtSignal, Qt
Expand Down Expand Up @@ -600,8 +599,10 @@ def populate_model_dropdown(self, selected_model: str, new_base_url: bool = Fals
print(ex)
self.model_dropdown.setCurrentText(selected_model)

def send_message(self):
def send_message(self) -> None:
user_message = self.user_message.toPlainText()
if not user_message:
return

self.sync_settings_with_backend()

Expand Down

0 comments on commit ffa813b

Please sign in to comment.