Fix service view getting stuck
This commit is contained in:
parent
1175024af2
commit
dd053f9019
@ -346,10 +346,11 @@ function loadService(serviceId, service) {
|
||||
}
|
||||
|
||||
document.querySelector('#services > .loader').classList.add('hidden');
|
||||
updateNavigation();
|
||||
service.li.classList.add('loaded');
|
||||
service.viewReady = true;
|
||||
|
||||
updateNavigation();
|
||||
|
||||
if (selectedService === null) {
|
||||
setActiveService(serviceId);
|
||||
}
|
||||
@ -438,7 +439,7 @@ function updateNavigation() {
|
||||
function updateWindowTitle() {
|
||||
if (selectedService === null) {
|
||||
ipcRenderer.send('updateWindowTitle', null);
|
||||
} else {
|
||||
} else if(services[selectedService].viewReady) {
|
||||
ipcRenderer.send('updateWindowTitle', selectedService, services[selectedService].view.getWebContents().getTitle());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user