Переглянути джерело

Fix event handler to use the native wrapper. The merge pulled out the EditorEvents file that this relied on.

Shaddock Heath 8 роки тому
батько
коміт
e41c645b94
1 змінених файлів з 2 додано та 2 видалено
  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));
     }
 
     /**