浏览代码

Hide Resume Print when not relevant

Scott Lahteine 6 年前
父节点
当前提交
0a7ea7063f
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      Marlin/src/lcd/menu/menu_main.cpp

+ 6
- 1
Marlin/src/lcd/menu/menu_main.cpp 查看文件

@@ -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);

正在加载...
取消
保存