Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

FileEditor: avoid useless loading of files of open (but not yet loaded) tabs on app exit

AuthorKarl Tauber <email>
Date2015-07-29 12:09:36 GMT+0200
Commita38d99a5f23b80eedaf35545f4fee3d82e764a0a
Parent50c0f30
src/main/java/org/markdownwriterfx/FileEditor.java
private void activated() {
+ if( tab.getTabPane() == null || !tab.isSelected())
+ return; // tab is already closed or no longer active
+
if (tab.getContent() != null) {
markdownEditorPane.requestFocus();
Delta3 lines added, 0 lines removed, 3-line increase