Przeglądaj źródła

Emit signal after work is done.

Afshin Darian 8 lat temu
rodzic
commit
d64edca856
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/application/shell.ts

+ 1 - 1
src/application/shell.ts

@@ -151,7 +151,6 @@ class ApplicationShell extends Widget {
     this.layout = rootLayout;
 
     this._dockPanel.currentChanged.connect((sender, args) => {
-      this.currentChanged.emit(args);
       if (args.newValue) {
         args.newValue.title.className += ` ${CURRENT_CLASS}`;
       }
@@ -160,6 +159,7 @@ class ApplicationShell extends Widget {
         let title = args.oldValue.title;
         title.className = title.className.replace(CURRENT_CLASS, '');
       }
+      this.currentChanged.emit(args);
     });
   }