Procházet zdrojové kódy

Emit signal after work is done.

Afshin Darian před 8 roky
rodič
revize
d64edca856
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
     });
   }