screen: fix some warnings about init_check and define ind

This commit is contained in:
alfrix committed 2023-06-09 08:59:32 -03:00
1 parent 88afa50ea3
commit b74b1b600f
1 file changed
+2 -1
+2 -1
View File
@@ -189,6 +189,7 @@ class KlipperScreen(Gtk.Window):
self.connecting = True
self.initialized = False
ind = 0
logging.info(f"Connecting to printer: {name}")
for printer in self.printers:
if name == list(printer)[0]:
@@ -1005,7 +1006,7 @@ def main():
functions.patch_threading_excepthook()
logging.info(f"KlipperScreen version: {version}")
if not Gtk.init_check(None)[0]:
if not Gtk.init_check():
logging.critical("Failed to initialize Gtk")
raise RuntimeError
try: