fixed season folder toggle
This commit is contained in:
parent
2a201156f7
commit
6bb8901f25
@ -277,7 +277,7 @@ ipcMain.handle('dialog:proxyActiveSet', async (events, status: boolean) => {
|
|||||||
ipcMain.handle('dialog:getSeasonEnabledTemplate', async (events) => {
|
ipcMain.handle('dialog:getSeasonEnabledTemplate', async (events) => {
|
||||||
const savedStat = await settings.get('seasonFolderActive')
|
const savedStat = await settings.get('seasonFolderActive')
|
||||||
|
|
||||||
if (!savedStat) {
|
if (savedStat === undefined || savedStat === null) {
|
||||||
await settings.set('seasonFolderActive', true)
|
await settings.set('seasonFolderActive', true)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,6 @@ contextBridge.exposeInMainWorld('myAPI', {
|
|||||||
getEpisodeTemplate: () => ipcRenderer.invoke('dialog:getEpisodeTemplate'),
|
getEpisodeTemplate: () => ipcRenderer.invoke('dialog:getEpisodeTemplate'),
|
||||||
setSeasonTemplate: (name: string) => ipcRenderer.invoke('dialog:setSeasonTemplate', name),
|
setSeasonTemplate: (name: string) => ipcRenderer.invoke('dialog:setSeasonTemplate', name),
|
||||||
getSeasonTemplate: () => ipcRenderer.invoke('dialog:getSeasonTemplate'),
|
getSeasonTemplate: () => ipcRenderer.invoke('dialog:getSeasonTemplate'),
|
||||||
setSeasonEnabled: (status: boolean) => ipcRenderer.invoke('dialog:setSeasonEnabledTemplate', status),
|
setSeasonEnabled: (active: boolean) => ipcRenderer.invoke('dialog:setSeasonEnabledTemplate', active),
|
||||||
getSeasonEnabled: (status: boolean) => ipcRenderer.invoke('dialog:getSeasonEnabledTemplate', status)
|
getSeasonEnabled: () => ipcRenderer.invoke('dialog:getSeasonEnabledTemplate')
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user