File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/ui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import org.isoron.uhabits.core.commands.CommandRunner
2424import org.isoron.uhabits.core.commands.CreateRepetitionCommand
2525import org.isoron.uhabits.core.commands.DeleteHabitsCommand
2626import org.isoron.uhabits.core.models.Habit
27+ import org.isoron.uhabits.core.models.NumericalHabitType
2728import org.isoron.uhabits.core.models.Timestamp
2829import org.isoron.uhabits.core.preferences.Preferences
2930import 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 ,
You can’t perform that action at this time.
0 commit comments