|
@@ -754,17 +754,17 @@ class NCMainCommon: NSObject {
|
|
|
}
|
|
|
|
|
|
DispatchQueue.main.async {
|
|
|
- if self.appDelegate.activeMain != nil {
|
|
|
+ if self.appDelegate.activeMain != nil && ServerUrl != nil && self.appDelegate.activeMain.serverUrl == ServerUrl {
|
|
|
self.operationQueueReloadDatasource.addOperation {
|
|
|
self.appDelegate.activeMain.reloadDatasource(ServerUrl, fileID: fileID, action: Int(action))
|
|
|
}
|
|
|
}
|
|
|
- if self.appDelegate.activeFavorites != nil {
|
|
|
+ if self.appDelegate.activeFavorites != nil && self.appDelegate.activeFavorites.viewIfLoaded?.window != nil {
|
|
|
self.operationQueueReloadDatasource.addOperation {
|
|
|
self.appDelegate.activeFavorites.reloadDatasource(fileID, action: Int(action))
|
|
|
}
|
|
|
}
|
|
|
- if self.appDelegate.activeTransfers != nil {
|
|
|
+ if self.appDelegate.activeTransfers != nil && self.appDelegate.activeTransfers.viewIfLoaded?.window != nil {
|
|
|
self.operationQueueReloadDatasource.addOperation {
|
|
|
self.appDelegate.activeTransfers.reloadDatasource(fileID, action: Int(action))
|
|
|
}
|