Skip to content

Commit 182f280

Browse files
authored
App: don't pass appcenter object instance (#571)
1 parent 325bd2d commit 182f280

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/AppSystem/App.vala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public class Dock.App : Object {
119119
app_action_group.add_action (view_action);
120120

121121
var appcenter = Dock.AppCenter.get_default ();
122-
appcenter.notify["dbus"].connect (() => on_appcenter_dbus_changed.begin (appcenter));
123-
on_appcenter_dbus_changed.begin (appcenter);
122+
appcenter.notify["dbus"].connect (() => on_appcenter_dbus_changed.begin ());
123+
on_appcenter_dbus_changed.begin ();
124124
}
125125

126126
notify["pinned"].connect (() => {
@@ -325,7 +325,8 @@ public class Dock.App : Object {
325325
});
326326
}
327327

328-
private async void on_appcenter_dbus_changed (Dock.AppCenter appcenter) {
328+
private async void on_appcenter_dbus_changed () {
329+
var appcenter = Dock.AppCenter.get_default ();
329330
if (appcenter.dbus != null) {
330331
try {
331332
appstream_comp_id = yield appcenter.dbus.get_component_from_desktop_id (app_info.get_id ());

0 commit comments

Comments
 (0)