activate only for inisial setup

pull/262/head
LianaHus 4 years ago
parent a074a2cb54
commit b66a89c3ce
  1. 14
      src/app.js

@ -135,7 +135,7 @@ class App {
document.body.appendChild(self._view.splashScreen)
// setup storage
var configStorage = new Storage('config-v0.8:')
const configStorage = new Storage('config-v0.8:')
// load app config
const config = new Config(configStorage)
@ -400,16 +400,18 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
await appManager.activatePlugin(['home', 'sidePanel', 'hiddenPanel', 'pluginManager', 'fileExplorers', 'settings', 'contextualListener', 'scriptRunner', 'terminal', 'fetchAndCompile'])
// Set workspace after initial activation
if (Array.isArray(workspace)) await appManager.activatePlugin(workspace)
if (Array.isArray(workspace)) {
await appManager.activatePlugin(workspace)
} else {
// activate solidity plugin
appManager.ensureActivated('solidity')
appManager.ensureActivated('udapp')
}
// Load and start the service who manager layout and frame
const framingService = new FramingService(sidePanel, menuicons, mainview, this._components.resizeFeature)
framingService.start()
// preactivate solidity plugin
appManager.ensureActivated('solidity')
appManager.ensureActivated('udapp')
// get the file list from the parent iframe
loadFileFromParent(fileManager)

Loading…
Cancel
Save