mirror of https://github.com/Desuuuu/klipper.git
parent
0d646c4a2e
commit
2529eea491
|
@ -30,7 +30,11 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing %}
|
||||
RESPOND TYPE=command MSG=action:cancel
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
CANCEL_PRINT
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:cancel
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% do start_routine("trigger_full_update") %}
|
||||
{% endif %}
|
||||
|
@ -44,7 +48,11 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing and not printer.pause_resume.is_paused %}
|
||||
RESPOND TYPE=command MSG=action:pause
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
PAUSE
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:pause
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% do start_routine("trigger_full_update") %}
|
||||
{% endif %}
|
||||
|
@ -58,7 +66,11 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing and printer.pause_resume.is_paused %}
|
||||
RESPOND TYPE=command MSG=action:resume
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
RESUME
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:resume
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% do start_routine("trigger_full_update") %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue