Skip to content

Commit

Permalink
Merge pull request #3089 from ControlSystemStudio/CSSTUDIO-2539
Browse files Browse the repository at this point in the history
CSSTUDIO-2539 Bugfix: Mark tabs as having unsaved changes also when `changeCount < 0`
  • Loading branch information
shroffk authored Jul 24, 2024
2 parents 0c25fe0 + 1f79339 commit b5d758d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class DisplayEditorInstance implements AppInstance
// Mark 'dirty' whenever there's a change, i.e. something to un-do
editor_gui.getDisplayEditor()
.getUndoableActionManager()
.addListener((to_undo, to_redo, changeCount) -> dock_item.setDirty(changeCount > 0));
.addListener((to_undo, to_redo, changeCount) -> dock_item.setDirty(changeCount != 0));

final ContextMenu menu = new ContextMenu();
final Control menu_node = editor_gui.getDisplayEditor().getContextMenuNode();
Expand Down

0 comments on commit b5d758d

Please sign in to comment.