Commit 419b4aa6 authored by yann300's avatar yann300

fix ballot.sol load

parent f1018c2e
......@@ -514,14 +514,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
filePanel.event.register('resize', delta => self._adjustLayout('left', delta))
setTimeout(function initOpenFile () {
var previouslyOpenedFile = config.get('currentFile') || 'browser/ballot.sol'
config.set('currentFile', null)
var previouslyOpenedFile = config.get('currentFile')
filesProviders['browser'].get(previouslyOpenedFile, (error, content) => {
if (!error && content) fileManager.switchFile(previouslyOpenedFile)
else fileManager.switchFile('browser/ballot.sol')
})
}, 0)
// ----------------- Renderer -----------------
var rendererAPI = {
......
......@@ -135,8 +135,6 @@ class FileManager {
} else _switchFile(file)
function _switchFile (file) {
self.saveCurrentFile()
var currentFile = self.opt.config.get('currentFile')
if (file === currentFile) return
self.refreshTabs(file)
self.fileProviderOf(file).get(file, (error, content) => {
if (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment