瀏覽代碼

FileManager: Keep the window title in sync with the current path.

Andreas Kling 6 年之前
父節點
當前提交
1ab995bfff
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Applications/FileManager/DirectoryTableView.cpp

+ 3 - 0
Applications/FileManager/DirectoryTableView.cpp

@@ -23,6 +23,9 @@ void DirectoryTableView::model_notification(const GModelNotification& notificati
         model().row_count() != 1 ? "s" : "",
         model().row_count() != 1 ? "s" : "",
         model().bytes_in_files(),
         model().bytes_in_files(),
         model().bytes_in_files() != 1 ? "s" : ""));
         model().bytes_in_files() != 1 ? "s" : ""));
+
+        if (on_path_change)
+            on_path_change(model().path());
     }
     }
 }
 }