From 9896f5e82e95cba54a382b56b1599589f5bf8353 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 7 Nov 2024 17:50:59 +0000 Subject: [PATCH] Small fixes --- .../xpipe/app/browser/session/BrowserSessionTabsComp.java | 6 ++++++ dist/changelogs/13.0.md | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/browser/session/BrowserSessionTabsComp.java b/app/src/main/java/io/xpipe/app/browser/session/BrowserSessionTabsComp.java index c953b723a..1482eb3e4 100644 --- a/app/src/main/java/io/xpipe/app/browser/session/BrowserSessionTabsComp.java +++ b/app/src/main/java/io/xpipe/app/browser/session/BrowserSessionTabsComp.java @@ -366,6 +366,12 @@ public class BrowserSessionTabsComp extends SimpleComp { tab.setContextMenu(createContextMenu(tabs, tab, tabModel)); tab.setClosable(tabModel.isCloseable()); + // Prevent closing while busy + tab.setOnCloseRequest(event -> { + if (!tabModel.canImmediatelyClose()) { + event.consume(); + } + }); if (tabModel.getIcon() != null) { var ring = new RingProgressIndicator(0, false); diff --git a/dist/changelogs/13.0.md b/dist/changelogs/13.0.md index b3ada7203..e5467a589 100644 --- a/dist/changelogs/13.0.md +++ b/dist/changelogs/13.0.md @@ -15,10 +15,11 @@ The file browser has been improved: - There is now a new option in the context menu of a tab to pin it, allowing for having a split view with two different file systems - There is now the option to dock terminals in the file browser (this is only available on Windows for now) - The previous system overview tab is now always shown +- There is now a new restart button for containers and VMs ## Security updates -There's now a new mechanism in place for checking for security updates separately from the normal update check. This is important going forward, to be able to act quickly when any security patch is published so that all users have the possibility to get notified even if they don't follow announcements on the GitHub repo or on Discord. You can also disable this functionality if you want. +There's now a new mechanism in place for checking for security updates separately from the normal update check. This is important going forward, to be able to act quickly when any security patch is published, so that all users have the possibility to get notified even if they don't follow announcements on the GitHub repo or on Discord. You can also disable this functionality if you want. ## Other