workspace-indicator: Set title and icon on prefs page

The window-list extension will add the workspace prefs as
additional page, so it needs a title and icon for the
view switcher.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/344>
This commit is contained in:
Florian Müllner
2024-10-11 12:31:36 +02:00
parent fc265fbe59
commit 832cf0fc84

View File

@@ -222,7 +222,10 @@ export class WorkspacesPage extends Adw.PreferencesPage {
}
constructor(settings) {
super();
super({
title: _('Workspaces'),
icon_name: 'view-grid-symbolic',
});
this.add(new GeneralGroup(settings));
this.add(new WorkspacesGroup());