mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-04-17 05:26:04 +02:00
Add every background video and a checkbox to toggle the lace pin visibility
This commit is contained in:
11
main.js
11
main.js
@@ -130,14 +130,15 @@ ipcMain.handle('load-nexus-api', () => {
|
||||
});
|
||||
|
||||
|
||||
ipcMain.handle('save-theme', (event, theme) => {
|
||||
store.set('theme', theme);
|
||||
ipcMain.handle('save-theme', (event, theme, lacePinState) => {
|
||||
store.set('theme.theme', theme);
|
||||
store.set('theme.lacePinState', lacePinState);
|
||||
});
|
||||
|
||||
ipcMain.handle('load-theme', () => {
|
||||
theme = store.get('theme');
|
||||
if (theme == undefined) {
|
||||
return "Silksong";
|
||||
theme = [store.get('theme.theme'), store.get('theme.lacePinState')];
|
||||
if (theme[0] == undefined) {
|
||||
return ["Silksong", false];
|
||||
}
|
||||
return theme;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user