delay get-disk-space until daemon ready

This commit is contained in:
zeppi 2022-06-10 12:33:56 -04:00
parent 30cbc3f5c5
commit 052c926d9b
3 changed files with 2 additions and 6 deletions

View file

@ -323,7 +323,7 @@ ipcMain.on('get-disk-space', async (event) => {
rendererWindow.webContents.send('send-disk-space', { diskSpace });
} catch (e) {
rendererWindow.webContents.send('send-disk-space', { error: e.message || e });
console.log('Failed to start LbryFirst', e);
console.log('Failed to get disk space', e);
}
});

View file

@ -103,8 +103,6 @@ ipcRenderer.on('send-disk-space', (event, result) => {
}
});
ipcRenderer.send('get-disk-space');
// @if TARGET='app'
ipcRenderer.on('open-uri-requested', (event, url, newSession) => {
function handleError() {
app.store.dispatch(
@ -191,7 +189,6 @@ document.addEventListener('click', (event) => {
target = target.parentNode;
}
});
// @endif
document.addEventListener('dragover', (event) => {
event.preventDefault();

View file

@ -341,7 +341,6 @@ export function doDaemonReady() {
);
dispatch({ type: ACTIONS.DAEMON_READY });
// @if TARGET='app'
dispatch(doBalanceSubscribe());
dispatch(doSetAutoLaunch());
dispatch(doFindFFmpeg());
@ -352,7 +351,7 @@ export function doDaemonReady() {
dispatch(doCheckUpgradeAvailable());
}
dispatch(doCheckUpgradeSubscribe());
// @endif
ipcRenderer.send('get-disk-space');
};
}