mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
fix: searchbar disabling itself when searching for nothing
This commit is contained in:
@@ -292,7 +292,6 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
table.setItemDelegateForColumn(i, self._tracker_hover_delegate)
|
table.setItemDelegateForColumn(i, self._tracker_hover_delegate)
|
||||||
|
|
||||||
def _start_search(self):
|
def _start_search(self):
|
||||||
self.searchbar.setEnabled(False)
|
|
||||||
def _search_thread():
|
def _search_thread():
|
||||||
try:
|
try:
|
||||||
run_search(self)
|
run_search(self)
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ def run_search(self) -> None:
|
|||||||
if search_text == "":
|
if search_text == "":
|
||||||
consoleLog("Error: Can't search for nothing")
|
consoleLog("Error: Can't search for nothing")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.searchbar.setEnabled(False)
|
||||||
consoleLog(f"User searched for: {search_text}")
|
consoleLog(f"User searched for: {search_text}")
|
||||||
|
|
||||||
# Get current tracker and call its search function
|
# Get current tracker and call its search function
|
||||||
|
|||||||
Reference in New Issue
Block a user