status/thunderbolt: Small style cleanup

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3188>
This commit is contained in:
Julian Sparber 2024-02-13 16:00:43 +01:00
parent 2bbe03c473
commit 502a592362

View File

@ -265,9 +265,8 @@ class Indicator extends SystemIndicator {
this._notification = null;
});
this._notification.connect('activated', () => {
let app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop');
if (app)
app.activate();
const app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop');
app?.activate();
});
source.showNotification(this._notification);
}