From f7484c3df5bec5e88885695cbbdbe7e0c5f762b5 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Sat, 28 Nov 2020 10:32:48 -0500 Subject: [PATCH] screen: fix errors --- screen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screen.py b/screen.py index 4c3cff43..5b023925 100644 --- a/screen.py +++ b/screen.py @@ -16,7 +16,7 @@ import subprocess gi.require_version("Gtk", "3.0") -from gi.repository import Gtk, Gdk, GLib +from gi.repository import Gtk, Gdk, GLib, Pango from ks_includes.KlippyWebsocket import KlippyWebsocket from ks_includes.KlippyRest import KlippyRest @@ -320,7 +320,7 @@ class KlipperScreen(Gtk.Window): #self.files.add_file() elif action == "notify_metadata_update": self.files.update_metadata(data['filename']) - elif self.shutdown == False and action == "notify_gcode response": + elif self.shutdown == False and action == "notify_gcode_response": if "Klipper state: Shutdown" in data: self.shutdown == True self.printer_initializing(_("Klipper has shutdown"))