Move assignment of the operating system property (#786)
This commit is contained in:
parent
46af4c9da4
commit
ab4dbacc4c
@ -28,6 +28,9 @@ class ProfileController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
|
const {platform: {os}} = await api.getEnvironmentInfo();
|
||||||
|
this._profileConditionsUI.os = os;
|
||||||
|
|
||||||
$('#profile-target').change(this._onTargetProfileChanged.bind(this));
|
$('#profile-target').change(this._onTargetProfileChanged.bind(this));
|
||||||
$('#profile-name').change(this._onNameChanged.bind(this));
|
$('#profile-name').change(this._onNameChanged.bind(this));
|
||||||
$('#profile-add').click(this._onAdd.bind(this));
|
$('#profile-add').click(this._onAdd.bind(this));
|
||||||
@ -47,9 +50,6 @@ class ProfileController {
|
|||||||
// Private
|
// Private
|
||||||
|
|
||||||
async _onOptionsChanged() {
|
async _onOptionsChanged() {
|
||||||
const {platform: {os}} = await api.getEnvironmentInfo();
|
|
||||||
this._profileConditionsUI.os = os;
|
|
||||||
|
|
||||||
const optionsFull = await this._settingsController.getOptionsFullMutable();
|
const optionsFull = await this._settingsController.getOptionsFullMutable();
|
||||||
this._formWrite(optionsFull);
|
this._formWrite(optionsFull);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user