mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
fix: add validation for empty search input in return_pressed method
This commit is contained in:
@@ -144,6 +144,10 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
|
||||
def return_pressed(self):
|
||||
search_text = self.searchbar.text()
|
||||
if search_text == "":
|
||||
if debug:
|
||||
print("Error: Can't search for nothing")
|
||||
return
|
||||
if debug:
|
||||
print("User searched for:", search_text)
|
||||
if tracker == "uztracker":
|
||||
|
||||
Reference in New Issue
Block a user