Skip to content

Commit

Permalink
Links in the about window now open in the user's default browser. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastermindzh committed Mar 24, 2024
1 parent fd0dae2 commit 4ef76c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- TIDAL will now close the previous notification if a new one is sent whilst the old is still visible. [#364](https://github.com/Mastermindzh/tidal-hifi/pull/364)
- Updated developer documentation to get started in README [#365](https://github.com/Mastermindzh/tidal-hifi/pull/365)
-
- Links in the about window now open in the user's default browser. fixes [#360](https://github.com/Mastermindzh/tidal-hifi/issues/360)

## [5.9.0]

Expand Down
12 changes: 6 additions & 6 deletions src/pages/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ <h4>Upload new themes</h4>
<img alt="tidal icon" class="about-section__icon" src="./icon.png" />
<h4>TIDAL Hi-Fi</h4>
<div class="about-section__version">
<a href="https://github.com/Mastermindzh/tidal-hifi/releases/tag/5.10.0">5.10.0</a>
<a target="_blank" href="https://github.com/Mastermindzh/tidal-hifi/releases/tag/5.10.0">5.10.0</a>
</div>
<div class="about-section__links">
<a href="https://github.com/mastermindzh/tidal-hifi/" class="about-section__button">Github <i
class="fa fa-external-link"></i></a>
<a href="https://github.com/Mastermindzh/tidal-hifi/issues" class="about-section__button">Report an issue <i
class="fa fa-external-link"></i></a>
<a href="https://github.com/Mastermindzh/tidal-hifi/graphs/contributors"
<a target="_blank" href="https://github.com/mastermindzh/tidal-hifi/" class="about-section__button">Github
<i class="fa fa-external-link"></i></a>
<a target="_blank" href="https://github.com/Mastermindzh/tidal-hifi/issues"
class="about-section__button">Report an issue <i class="fa fa-external-link"></i></a>
<a target="_blank" href="https://github.com/Mastermindzh/tidal-hifi/graphs/contributors"
class="about-section__button">Contributors <i class="fa fa-external-link"></i></a>
</div>
</section>
Expand Down
1 change: 0 additions & 1 deletion src/pages/settings/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ html {
}

// file upload

.file-drop-area {
position: relative;
display: flex;
Expand Down
6 changes: 5 additions & 1 deletion src/scripts/settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Store from "electron-store";

import { BrowserWindow } from "electron";
import { BrowserWindow, shell } from "electron";
import path from "path";
import { settings } from "../constants/settings";

Expand Down Expand Up @@ -134,6 +134,10 @@ export const createSettingsWindow = function () {

settingsWindow.loadURL(`file://${__dirname}/../pages/settings/settings.html`);

settingsWindow.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);
return { action: "deny" };
});
settingsModule.settingsWindow = settingsWindow;
};

Expand Down

0 comments on commit 4ef76c2

Please sign in to comment.