This commit is contained in:
2022-09-25 18:29:39 +00:00
parent fe4501aa84
commit 268e1f341e
2 changed files with 3 additions and 1 deletions

View File

@@ -336,6 +336,7 @@
(model.allUndeletedEntries)
->:Void [:Entry e] {
(model.toggleEntryPriority e)
(model.save)
(refreshModel)
(priorityWindow.clearActions)
(priorityWindow.show)
@@ -373,6 +374,7 @@
(model.allUndeletedEntries)
->:Void [:Entry e] {
(model.deleteEntry e)
(model.save)
(refreshModel)
(entryWindow.show)
}

View File

@@ -31,7 +31,7 @@ class Main extends Sprite
habitFile;
};
function reloadModel(_) {
if (t.draggingSprite == null) {
if (t.draggingSprite == null && !t.tempWindowIsShown()) {
var showLowerPriority = t.model.showLowerPriority;
var newModel = new HabitModel(habitFile);
newModel.showLowerPriority = showLowerPriority;