Procházet zdrojové kódy

Hide Resume Print when not relevant

Scott Lahteine před 6 roky
rodič
revize
0a7ea7063f
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6
    1
      Marlin/src/lcd/menu/menu_main.cpp

+ 6
- 1
Marlin/src/lcd/menu/menu_main.cpp Zobrazit soubor

@@ -138,7 +138,12 @@ void menu_main() {
138 138
       }
139 139
     #endif // !HAS_ENCODER_WHEEL && SDSUPPORT
140 140
 
141
-    MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
141
+    #if ENABLED(SDSUPPORT) || defined(ACTION_ON_RESUME)
142
+      #if ENABLED(SDSUPPORT)
143
+        if (card.isFileOpen() && card.isPaused())
144
+      #endif
145
+          MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
146
+    #endif
142 147
 
143 148
     MENU_ITEM(submenu, MSG_MOTION, menu_motion);
144 149
     MENU_ITEM(submenu, MSG_TEMPERATURE, menu_temperature);

Loading…
Zrušit
Uložit