Skip to content
Snippets Groups Projects
Commit 7d281d73 authored by Maxime Jacquemin's avatar Maxime Jacquemin
Browse files

[ivette] Fix the handling of settings on startup

The selected theme was not applied on startup. The fix consists on
calling the relevent ipc events at the start of the renderer to force
the application default settings.
parent 96b2cdc5
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
// Enable live-editing in React: // Enable live-editing in React:
import 'react-hot-loader/patch' ; import 'react-hot-loader/patch' ;
import React from 'react' ; import React from 'react' ;
import { ipcRenderer } from 'electron';
import { import {
setApplicationWindow, setApplicationWindow,
setPreferencesWindow, setPreferencesWindow,
...@@ -58,6 +59,9 @@ import Preferences from './Preferences' ; ...@@ -58,6 +59,9 @@ import Preferences from './Preferences' ;
// Define the application main components for each window: // Define the application main components for each window:
setApplicationWindow(Application); setApplicationWindow(Application);
setPreferencesWindow(Preferences); setPreferencesWindow(Preferences);
ipcRenderer.send('dome.ipc.settings.window', []);
ipcRenderer.send('dome.ipc.settings.global', []);
ipcRenderer.send('dome.ipc.settings.storage', []);
// Mark the main application reloadable and enable live updates: // Mark the main application reloadable and enable live updates:
module.hot && isApplicationWindow() && module.hot && isApplicationWindow() &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment