Ignoring isCompleted for AT_MOST habits

pull/2078/head
Jakub Kalinowski 9 months ago
parent fc9cc423d0
commit b45b87d3c6

@ -24,6 +24,7 @@ import org.isoron.uhabits.core.commands.CommandRunner
import org.isoron.uhabits.core.commands.CreateRepetitionCommand
import org.isoron.uhabits.core.commands.DeleteHabitsCommand
import org.isoron.uhabits.core.models.Habit
import org.isoron.uhabits.core.models.NumericalHabitType
import org.isoron.uhabits.core.models.Timestamp
import org.isoron.uhabits.core.preferences.Preferences
import org.isoron.uhabits.core.tasks.Task
@ -120,7 +121,7 @@ class NotificationTray @Inject constructor(
override fun onPostExecute() {
systemTray.log("Showing notification for habit=" + habit.id)
if (isCompleted) {
if (isCompleted && habit.targetType != NumericalHabitType.AT_MOST) {
systemTray.log(
String.format(
Locale.US,

Loading…
Cancel
Save