Fix asyncio issue while searching for printers

This commit is contained in:
Ircama
2025-06-02 02:40:18 +02:00
parent 5a23d4c102
commit d4816e6935
2 changed files with 10 additions and 15 deletions

3
ui.py
View File

@@ -37,7 +37,7 @@ from find_printers import PrinterScanner
from text_console import TextConsole
VERSION = "6.0.1"
VERSION = "6.0.2"
NO_CONF_ERROR = (
" Please select a printer model and a valid IP address,"
@@ -3102,6 +3102,7 @@ Web site: https://github.com/Ircama/epson_print_conf
self.detect_button.config(state=tk.DISABLED) # disable button while processing
self.show_status_text_view()
try:
# [{'ip': '...', 'hostname': '...', 'name': '...'}]
printers = self.printer_scanner.get_all_printers(
self.ip_var.get().strip()
)