Skip to content

Commit

Permalink
saving user preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
OllegK committed Aug 25, 2023
1 parent 4368e97 commit 8a3c53e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/nexus-bridge/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ export default class Nexus extends NexusBaseApplet {
)
}

saveUserPref(key, value) {
const ps = window.SiebelApp.S_App.NewPropertySet()
ps.SetProperty("Key", key)
ps.SetProperty(key, value)
this.pm.SetProperty(key, value)
this.pm.OnControlEvent(this.consts.get("PHYEVENT_INVOKE_CONTROL"),
this.pm.Get(this.consts.get("SWE_MTHD_UPDATE_USER_PREF")), ps)
}

getUsePref(key) {
return this.pm.Get(key);
}

closePopupApplet(nb) {
return this.nexusPopupController.closePopupApplet(nb)
}
Expand Down

0 comments on commit 8a3c53e

Please sign in to comment.