fix virtual SD print detection

This commit is contained in:
Desuuuu 2021-04-29 20:34:59 +02:00
parent 2529eea491
commit 6b4cdf1d59
No known key found for this signature in database
GPG Key ID: 85943F4B2C2CE0DC
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ script:
{% set t5uid1 = printer.t5uid1 %}
{% if data == t5uid1.constants.popup_confirmed %}
{% if t5uid1.is_printing %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
CANCEL_PRINT
{% else %}
RESPOND TYPE=command MSG=action:cancel
@ -48,7 +48,7 @@ script:
{% set t5uid1 = printer.t5uid1 %}
{% if data == t5uid1.constants.popup_confirmed %}
{% if t5uid1.is_printing and not printer.pause_resume.is_paused %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
PAUSE
{% else %}
RESPOND TYPE=command MSG=action:pause
@ -66,7 +66,7 @@ script:
{% set t5uid1 = printer.t5uid1 %}
{% if data == t5uid1.constants.popup_confirmed %}
{% if t5uid1.is_printing and printer.pause_resume.is_paused %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
RESUME
{% else %}
RESPOND TYPE=command MSG=action:resume