parent
09c54486cc
commit
de7d008c0b
@ -0,0 +1,13 @@
|
|||||||
|
export function getSendSettingsPlugin() {
|
||||||
|
const electron = window.require("electron");
|
||||||
|
const ipcRenderer = electron.ipcRenderer;
|
||||||
|
return (store) => {
|
||||||
|
store.subscribe((mutation, state) => {
|
||||||
|
console.log(mutation);
|
||||||
|
if (mutation.type !== "updateSettings") return;
|
||||||
|
ipcRenderer.send("settings", {
|
||||||
|
minimizeToTray: state.settings.minimizeToTray,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in new issue