Showing
1 changed file
with
5 additions
and
3 deletions
@@ -3092,10 +3092,12 @@ App.prototype.loadFileSystemEntry = function (fileHandle, success, error) { | @@ -3092,10 +3092,12 @@ App.prototype.loadFileSystemEntry = function (fileHandle, success, error) { | ||
3092 | if (file.type == 'image/png') { | 3092 | if (file.type == 'image/png') { |
3093 | data = this.extractGraphModelFromPng(data); | 3093 | data = this.extractGraphModelFromPng(data); |
3094 | } | 3094 | } |
3095 | - | ||
3096 | - success(new LocalFile(this, data, file.name, null, fileHandle, file)); | 3095 | + // TODO thingskit 修复导入组态时页面title变更为文件名 |
3096 | + // success(new LocalFile(this, data, file.name, null, fileHandle, file)); | ||
3097 | + success(new LocalFile(this, data, Editor.configurationName, null, fileHandle, file)); | ||
3097 | } else { | 3098 | } else { |
3098 | - this.openFileHandle(e.target.result, file.name, file, false, fileHandle); | 3099 | + // this.openFileHandle(e.target.result, file.name, file, false, fileHandle); |
3100 | + this.openFileHandle(e.target.result, Editor.configurationName, file, false, fileHandle); | ||
3099 | } | 3101 | } |
3100 | } catch (e) { | 3102 | } catch (e) { |
3101 | error(e); | 3103 | error(e); |