Skip to content

Commit

Permalink
Improve title of preferences group
Browse files Browse the repository at this point in the history
Links look a little weird at this place, so let's use a proper title and
only show the URL in the description.
  • Loading branch information
swsnr committed Sep 15, 2024
1 parent 11c0212 commit a3b21e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,17 @@ const SourcesPage = GObject.registerClass(
Gio.SettingsBindFlags.DEFAULT,
);

this._apodGroup.description = `<a href="${apod.website}">${apod.name}</a>`;
this._apodGroup.title = apod.name;
this._apodGroup.description = `<a href="${apod.website}">${apod.website}</a>`;
this.settings.sourceAPOD.bind(
"api-key",
this._apodApiKey,
"text",
Gio.SettingsBindFlags.DEFAULT,
);

this._stalenhagGroup.description = `<a href="${stalenhag.website}">${stalenhag.name}</a>`;
this._stalenhagGroup.title = stalenhag.name;
this._stalenhagGroup.description = `<a href="${stalenhag.website}">${stalenhag.website}</a>`;
// Load all scraped image collections and add them as toggles to the expander.
StalenhagCollections.loadImageCollections()
.then((collections) => {
Expand Down

0 comments on commit a3b21e8

Please sign in to comment.