Restore main window on error message
This commit is contained in:
@@ -46,7 +46,12 @@ class MountItems extends IPCContainer {
|
||||
this.setState({
|
||||
DisplayRetry: Object.keys(retryItems).length > 0,
|
||||
RetryItems: retryItems,
|
||||
}, stateCallback);
|
||||
}, () => {
|
||||
if (this.state.DisplayRetry) {
|
||||
this.sendRequest(Constants.IPC_Show_Window);
|
||||
}
|
||||
stateCallback();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -224,6 +229,7 @@ class MountItems extends IPCContainer {
|
||||
DisplayRetry: true,
|
||||
RetryItems: retryItems,
|
||||
}, () => {
|
||||
this.sendRequest(Constants.IPC_Show_Window);
|
||||
this.retryIntervals[storageType] = setInterval(() => {
|
||||
let retryItems = {
|
||||
...this.state.RetryItems,
|
||||
|
||||
Reference in New Issue
Block a user