Explorar el Código

Change the model name as well

Steven Silvester hace 9 años
padre
commit
60f850b98a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/docmanager/handler.ts

+ 2 - 0
src/docmanager/handler.ts

@@ -172,6 +172,8 @@ abstract class AbstractFileHandler<T extends Widget> implements IMessageFilter {
       let model = this._getModel(w);
       if (model.path === oldPath) {
         model.path = newPath;
+        let parts = newPath.split('/');
+        model.name = parts[parts.length - 1];
         w.title.text = this.getTitleText(model);
         return true;
       }