Update fileManager.ts

LianaHus-patch-7
Liana Husikyan 11 months ago committed by GitHub
parent 517bf8b038
commit 2ffff72025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/remix-ide/src/app/files/fileManager.ts

@ -152,9 +152,9 @@ class FileManager extends Plugin {
refresh() {
const provider = this.fileProviderOf('/')
// emit rootFolderChanged so that File Explorer reloads the file tree
if(Registry.getInstance().get('platform').api.isDesktop()){
if (Registry.getInstance().get('platform').api.isDesktop()) {
provider.event.emit('refresh')
}else{
} else {
provider.event.emit('rootFolderChanged', provider.workspace || '/')
this.emit('rootFolderChanged', provider.workspace || '/')
}

Loading…
Cancel
Save