Erweiterungen

This commit is contained in:
Sven committed 2024-02-08 14:38:04 +01:00
1 parent c69a5644a1
commit e04ee3cce1
7 files changed
+11 -9

No files matched your search

+4 -4
View File
@@ -16,8 +16,8 @@ class Constants {
static const String messageTopicHideRightButton = "hide_right_button";
static const String messageShowPopup = "show_popup";
static const int STATE_ASSIGNED = 0;
static const int STATE_ACCEPTED = 1;
static const int STATE_FINISHED = 2;
static const int STATE_FINISHED_NOT_CONFIRMED = 9;
static const int stateAssigned = 0;
static const int stateAccepted = 1;
static const int stateFinished = 2;
static const int stateFinishedNotConfirmed = 9;
}
+1 -1
View File
@@ -238,7 +238,7 @@ class MqttCore {
MyApp.isarInstance.jobs.putSync(newJob);
});
if (newJob.state == Constants.STATE_ASSIGNED) {
if (newJob.state == Constants.stateAssigned) {
if (newJob.global) {
await Util.playMp3('aaa.mp3');
} else {