[chrome-gnome-shell] api: reflect Shell settings in API object



commit d599e4226b03f09820ba5681e93f31251ab2420a
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Jan 7 21:27:42 2019 +0400

    api: reflect Shell settings in API object

 extension/include/sweettooth-api.js | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/extension/include/sweettooth-api.js b/extension/include/sweettooth-api.js
index dc32306..1f70a9d 100644
--- a/extension/include/sweettooth-api.js
+++ b/extension/include/sweettooth-api.js
@@ -173,6 +173,15 @@ window.SweetTooth = function () {
                                }
                                else if (event.data.request.signal == 'ShellSettingsChanged' && 
apiObject.onShellSettingChanged)
                                {
+                                       if(event.data.request.key === 'disable-user-extensions')
+                                       {
+                                               apiObject.userExtensionsDisabled = event.data.request.value;
+                                       }
+                                       else if(event.data.request.key === 
'disable-extension-version-validation')
+                                       {
+                                               apiObject.versionValidationEnabled = 
!event.data.request.value;
+                                       }
+
                                        apiObject.onShellSettingChanged(event.data.request.key, 
event.data.request.value);
                                }
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]