We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d4c58 commit abc95f0Copy full SHA for abc95f0
1 file changed
src/main/java/com/xwintop/xJavaFxTool/controller/IndexController.java
@@ -26,6 +26,7 @@
26
import javafx.scene.control.ContextMenu;
27
import javafx.scene.control.Menu;
28
import javafx.scene.control.MenuItem;
29
+import javafx.scene.control.Tab;
30
import javafx.scene.image.Image;
31
import javafx.scene.image.ImageView;
32
import lombok.Getter;
@@ -209,7 +210,7 @@ private void exitAction() {
209
210
211
@FXML
212
private void closeAllTabAction() {
- tabPaneMain.getTabs().clear();
213
+ tabPaneMain.getTabs().removeIf(Tab::isClosable);
214
}
215
216
0 commit comments