瀏覽代碼

Bugfix: layout modified signal was not connected properly.

Afshin Darian 8 年之前
父節點
當前提交
a6a1c75921
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/application/src/shell.ts

+ 2 - 2
packages/application/src/shell.ts

@@ -113,7 +113,7 @@ class ApplicationShell extends Widget {
     this._tracker.activeChanged.connect(this._onActiveChanged, this);
 
     // Connect main layout change listener.
-    this._dockPanel.layoutModified.connect(() => this._save, this);
+    this._dockPanel.layoutModified.connect(this._save, this);
   }
 
   /**
@@ -345,7 +345,7 @@ class ApplicationShell extends Widget {
     }
     this._database = database;
     this._database.fetch().then(saved => {
-      if (this.isDisposed && !saved) {
+      if (this.isDisposed || !saved) {
         return;
       }