Skip to content

Commit

Permalink
Fix problem with opening same file multiple times (#2355)
Browse files Browse the repository at this point in the history
Registers an open cookie that can be used for opening the file when not using the editor.
  • Loading branch information
breiler authored Oct 23, 2023
1 parent 24d974a commit 66703e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2021 Will Winder
Copyright 2016-2023 Will Winder
This file is part of Universal Gcode Sender (UGS).
Expand Down Expand Up @@ -66,7 +66,7 @@ public GcodeDataObject(FileObject pf, MultiFileLoader loader) throws IOException
}
});
} else {
openFile(pf);
getCookieSet().add((OpenCookie) () -> openFile(pf));
}
}

Expand Down

0 comments on commit 66703e8

Please sign in to comment.