mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 13:32:42 +01:00
Made sure settingsWindow exists before operating on it. fixes #344
This commit is contained in:
parent
10a4af8e90
commit
49bc737485
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Fixed chromium mediaSession instance showing up. fixes #338 #198
|
||||
- Set a new icon, should fix #302
|
||||
- Made sure settingsWindow exists before operating on it. fixes #344
|
||||
|
||||
## [5.8.0]
|
||||
|
||||
|
@ -138,6 +138,10 @@ export const createSettingsWindow = function () {
|
||||
};
|
||||
|
||||
export const showSettingsWindow = function (tab = "general") {
|
||||
if (!settingsWindow) {
|
||||
console.log("Settings window is not initialized. Attempting to create it.");
|
||||
createSettingsWindow();
|
||||
}
|
||||
settingsWindow.webContents.send("goToTab", tab);
|
||||
|
||||
// refresh data just before showing the window
|
||||
|
Loading…
Reference in New Issue
Block a user