Skip to content

Commit fbcf2d4

Browse files
authored
Changes as per issue. (#200)
Trivial one this.
2 parents ad73971 + b671936 commit fbcf2d4

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

source/Settings.mc

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
//
1515
// Description:
1616
//
17-
// Home Assistant settings.
17+
// Home Assistant settings.
18+
//
19+
// WARNING!
20+
//
21+
// Careful putting ErrorView.show() calls in here. They need to be guarded so that
22+
// they do not get called when only displaying the glance view.
1823
//
1924
//-----------------------------------------------------------------------------------
2025

@@ -93,8 +98,6 @@ class Settings {
9398
Background.deleteTemporalEvent();
9499
Background.deleteActivityCompletedEvent();
95100
}
96-
} else {
97-
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
98101
}
99102
} else {
100103
// Explicitly disable the background event which persists when the application closes.

source/WebhookManager.mc

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class WebhookManager {
260260
];
261261

262262
if (Toybox has :ActivityMonitor) {
263-
System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
263+
// System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
264264
var activityInfo = ActivityMonitor.getInfo();
265265
sensors.add({
266266
"name" => "Steps today",
@@ -309,7 +309,7 @@ class WebhookManager {
309309
});
310310
}
311311
} else {
312-
System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
312+
//System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
313313
}
314314

315315
if (Activity has :getProfileInfo) {

0 commit comments

Comments
 (0)