Fixing mind-bogingingly strange issue causing Qt crash when attempting to set WeakSet during mouse move events.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a26dbc8a00
commit
2995b2271a
2 changed files with 5 additions and 4 deletions
|
@ -23,17 +23,17 @@
|
|||
|
||||
|
||||
export class BaseEvent {
|
||||
#name
|
||||
___name = ""
|
||||
|
||||
/**
|
||||
* @property {string} name - Name of the event.
|
||||
*/
|
||||
constructor(name) {
|
||||
this.#name = name
|
||||
this.___name = name
|
||||
}
|
||||
|
||||
get name() {
|
||||
return this.#name
|
||||
return this.___name
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,8 @@ class SettingsAPI extends Module {
|
|||
if(propType !== typeof value)
|
||||
throw new Error(`Value of ${property} must be a ${propType} (${typeof value} provided).`)
|
||||
this.#properties.set(property, value)
|
||||
this.emit(new ChangedEvent(property, oldValue, value, byUser === true))
|
||||
const evt = new ChangedEvent(property, oldValue, value, byUser === true)
|
||||
this.emit(evt)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue