mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-07-28 00:22:26 +02:00
Made sure settingsWindow exists before operating on it. fixes #344
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user