aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FileTreeView.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-04-15 14:21:26 +0000
committersaturneric <[email protected]>2024-04-15 14:21:26 +0000
commitc59deb6f6c05497f668f384bfe7c1d07c6ace5fc (patch)
tree7af2fcf2571e627d2363eda9e5f320c9f3236e38 /src/ui/widgets/FileTreeView.h
parentfeat: prefer to show module name instead of module id (diff)
downloadGpgFrontend-c59deb6f6c05497f668f384bfe7c1d07c6ace5fc.tar.gz
GpgFrontend-c59deb6f6c05497f668f384bfe7c1d07c6ace5fc.zip
fix: high cpu usage when using file tab
Diffstat (limited to 'src/ui/widgets/FileTreeView.h')
-rw-r--r--src/ui/widgets/FileTreeView.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/widgets/FileTreeView.h b/src/ui/widgets/FileTreeView.h
index cd3b1cb8..b1cc8897 100644
--- a/src/ui/widgets/FileTreeView.h
+++ b/src/ui/widgets/FileTreeView.h
@@ -219,6 +219,12 @@ class FileTreeView : public QTreeView {
*/
void slot_create_popup_menu();
+ /**
+ * @brief
+ *
+ */
+ void slot_adjust_column_widths();
+
private:
QFileSystemModel* dir_model_; ///<
QString current_path_; ///<
@@ -233,5 +239,7 @@ class FileTreeView : public QTreeView {
QAction* action_create_empty_file_;
QAction* action_make_directory_;
QAction* action_compress_files_;
+
+ bool initial_resize_done_ = false;
};
} // namespace GpgFrontend::UI \ No newline at end of file