Skip to content

Commit 37219cb

Browse files
Jakub KalinowskiiSoron
authored andcommitted
Ignoring isCompleted for AT_MOST habits
1 parent 62d9d29 commit 37219cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/ui/NotificationTray.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import org.isoron.uhabits.core.commands.CommandRunner
2424
import org.isoron.uhabits.core.commands.CreateRepetitionCommand
2525
import org.isoron.uhabits.core.commands.DeleteHabitsCommand
2626
import org.isoron.uhabits.core.models.Habit
27+
import org.isoron.uhabits.core.models.NumericalHabitType
2728
import org.isoron.uhabits.core.models.Timestamp
2829
import org.isoron.uhabits.core.preferences.Preferences
2930
import org.isoron.uhabits.core.tasks.Task
@@ -120,7 +121,7 @@ class NotificationTray @Inject constructor(
120121

121122
override fun onPostExecute() {
122123
systemTray.log("Showing notification for habit=" + habit.id)
123-
if (isCompleted) {
124+
if (isCompleted && habit.targetType != NumericalHabitType.AT_MOST) {
124125
systemTray.log(
125126
String.format(
126127
Locale.US,

0 commit comments

Comments
 (0)