mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Cancelling adding an indexer will stop listening to save event
Fixed: Cancelling adding indexer will not break saving
This commit is contained in:
@@ -10,6 +10,7 @@ define(
|
||||
|
||||
initialize: function () {
|
||||
this.listenTo(vent, vent.Commands.SaveSettings, this.saveSettings);
|
||||
this.listenTo(this, 'destroy', this._stopListening);
|
||||
},
|
||||
|
||||
saveSettings: function () {
|
||||
@@ -28,8 +29,11 @@ define(
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
},
|
||||
|
||||
_stopListening: function () {
|
||||
this.stopListening(vent, vent.Commands.SaveSettings);
|
||||
}
|
||||
});
|
||||
|
||||
return AsChangeTrackingModel.call(model);
|
||||
|
||||
Reference in New Issue
Block a user