mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.66k stars 348 forks source link

fix: display "pause on layer"-button only when the macros exists #1876

Closed meteyou closed 2 months ago

meteyou commented 3 months ago

Description

This PR fix the "Pause at Layer" button in the Status panel. Until now, you saw this button, if you don't have "Exclude objects" active, set Layer counts, but no macros (SET_PAUSE_AT_LAYER & SET_PAUSE_NEXT_LAYER).

Related Tickets & Documents

none

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none