diff --git a/src/octoprint/server/ajax/gcodefiles.py b/src/octoprint/server/ajax/gcodefiles.py index df1622ec..ccc45988 100644 --- a/src/octoprint/server/ajax/gcodefiles.py +++ b/src/octoprint/server/ajax/gcodefiles.py @@ -141,7 +141,7 @@ def gcodeFileCommand(filename, target): if command == "load": # selects/loads a file printAfterLoading = False - if "print" in data.keys() and data["print"] in valid_boolean_trues: + if "print" in data.keys() and data["print"]: printAfterLoading = True sd = False