Refactoring
This commit is contained in:
@@ -24,8 +24,6 @@ class MountItems extends IPCContainer {
|
||||
this.setRequestHandler(Constants.IPC_Detect_Mounts_Reply, this.onDetectMountsReply);
|
||||
this.setRequestHandler(Constants.IPC_Mount_Drive_Reply, this.onMountDriveReply);
|
||||
this.setRequestHandler(Constants.IPC_Unmount_Drive_Reply, this.onUnmountDriveReply);
|
||||
|
||||
this.detectMounts();
|
||||
}
|
||||
|
||||
retryIntervals = {};
|
||||
@@ -56,6 +54,10 @@ class MountItems extends IPCContainer {
|
||||
}
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
this.detectMounts();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
for (const provider in this.state.RetryItems) {
|
||||
if (this.state.RetryItems.hasOwnProperty(provider)) {
|
||||
|
||||
Reference in New Issue
Block a user