mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
set loading to true while shutting down
This commit is contained in:
parent
d65b6e1f29
commit
0877cf421d
2 changed files with 5 additions and 1 deletions
|
@ -751,6 +751,8 @@ function exit (relaunch) {
|
|||
|
||||
Util.log('info', 'MW shutdown is starting, relaunch: ' + relaunch);
|
||||
|
||||
send('shutdownStart');
|
||||
|
||||
if (useGRPC) {
|
||||
if (server) {
|
||||
server.stop().then(()=>{
|
||||
|
|
|
@ -490,9 +490,11 @@ class App extends React.Component<Props, State> {
|
|||
});
|
||||
});
|
||||
|
||||
ipcRenderer.on('shutdown', (e, relaunch) => {
|
||||
ipcRenderer.on('shutdownStart', (e, relaunch) => {
|
||||
this.setState({ loading: true });
|
||||
});
|
||||
|
||||
ipcRenderer.on('shutdown', (e, relaunch) => {
|
||||
C.Shutdown(() => {
|
||||
ipcRenderer.send('shutdown', relaunch);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue