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

This commit is contained in:
Adsooi 2024-10-14 17:55:53 +02:00
parent a26dbc8a00
commit 2995b2271a
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 5 additions and 4 deletions

View file

@ -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
}
}

View file

@ -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)
}
/**