Browse Source

Merge pull request #1438 from AtomicGameEngine/TSH-ATOMIC-FIX-EVENTDATA

Fix event handler to use the native wrapper.
JoshEngebretson 8 years ago
parent
commit
0e29e90b69
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Script/AtomicEditor/editor/Editor.ts

+ 2 - 2
Script/AtomicEditor/editor/Editor.ts

@@ -191,12 +191,12 @@ class AtomicEditor extends Atomic.ScriptObject {
     setApplicationPreference(groupName: string, preferenceName: string, value: number | boolean | string) {
         Preferences.getInstance().setApplicationPreference(groupName, preferenceName, value);
         WebView.WebBrowserHost.setGlobalStringProperty("HOST_Preferences", "ApplicationPreferences", JSON.stringify(Preferences.getInstance().cachedApplicationPreferences, null, 2 ));
-        const eventData: EditorEvents.UserPreferencesChangedEvent = {
+        const eventData: Editor.UserPreferencesChangedNotificationEvent = {
             projectPreferences: JSON.stringify(Preferences.getInstance().cachedProjectPreferences),
             applicationPreferences: JSON.stringify(Preferences.getInstance().cachedApplicationPreferences)
         };
 
-        this.sendEvent(EditorEvents.UserPreferencesChangedNotification, eventData);
+        this.sendEvent(Editor.UserPreferencesChangedNotificationEventData(eventData));
     }
 
     /**