-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSynthGeneralSettings.js
More file actions
19 lines (17 loc) · 721 Bytes
/
Copy pathSynthGeneralSettings.js
File metadata and controls
19 lines (17 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Whether SynthFlight should notify user when DEM is loaded or map objects are edited
* @type {boolean}
*/
L.ALS.generalSettings.notificationsEnabled = true;
L.ALS.SynthGeneralSettings = L.ALS.GeneralSettings.extend({
initialize: function (defaultLocale) {
L.ALS.GeneralSettings.prototype.initialize.call(this, defaultLocale);
this.removeWidget("notify");
this.addWidget(new L.ALS.Widgets.Checkbox("notify", "generalSettingsDisableAnnoyingNotification", this, "_changeNotifications"), false);
},
_changeNotifications: function (widget) {
let value = !widget.getValue();
L.ALS.generalSettings.notifyWhenLongRunningOperationComplete = value;
L.ALS.generalSettings.notificationsEnabled = value;
}
})