[gnome-maps] application: Add missing static namespace



commit 4e55da45191226a9235b649bd1767ff142eeebac
Author: Marcus Lundblad <ml dfupdate se>
Date:   Sun Jun 19 19:31:17 2022 +0200

    application: Add missing static namespace
    
    Add missing Application namespace when
    accessing static contact store instance
    in the show contact methods.
    
    Ref #448

 src/application.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 8ad2c316..0d164870 100644
--- a/src/application.js
+++ b/src/application.js
@@ -106,7 +106,7 @@ export class Application extends Gtk.Application {
     }
 
     _showContact(id) {
-        contactStore.lookup(id, (contact) => {
+        Application.contactStore.lookup(id, (contact) => {
             this.mark_busy();
             if (!contact) {
                 this.unmark_busy();
@@ -125,11 +125,11 @@ export class Application extends Gtk.Application {
 
         let id = parameter.deep_unpack();
 
-        if (contactStore.state === Maps.ContactStoreState.LOADED) {
+        if (Application.contactStore.state === Maps.ContactStoreState.LOADED) {
             this. _showContact(id);
         } else {
-            Utils.once(contactStore, 'notify::state', () => {
-                if (contactStore.state === Maps.ContactStoreState.LOADED)
+            Utils.once(Application.contactStore, 'notify::state', () => {
+                if (Application.contactStore.state === Maps.ContactStoreState.LOADED)
                     this._showContact(id);
             });
         }


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