electron-store base for volume storing, fixes to window max/min handling

This commit is contained in:
Core 2021-12-16 17:17:18 +00:00
parent f193299996
commit 3fcf6f9faf
3 changed files with 55 additions and 20 deletions

View file

@ -4,6 +4,13 @@ const {app} = require('electron');
// Creating the Application Window and Calling all the Functions
function CreateWindow() {
if (app.isQuiting) { app.quit(); return; }
// store
const Store = require("electron-store");
app.cfg = new Store({
defaults: {volume: 1},
});
/** CIDER **/
const ciderwin = require("./resources/functions/cider-base")
app.win = ciderwin