Merge pull request #137 from bell07/master

fix print button if the selection was lost
master
bell07 2020-03-27 20:51:44 +01:00 committed by GitHub
commit ffb395a360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ laptop.register_view("printer:app", {
param.label = fields.label
end
if fields.print then
if fields.print and sysstore.selected_printer then
local hw_os = laptop.os_get(sysstore.selected_printer.pos)
if hw_os and minetest.registered_items[hw_os.node.name].groups.laptop_printer then
hw_os.sysdata.print_queue = hw_os.sysdata.print_queue or {}