[baobab/reroot-view: 35/35] Adjust FolderWidget for being visible while scanning
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/reroot-view: 35/35] Adjust FolderWidget for being visible while scanning
- Date: Sun, 28 Jun 2020 11:01:04 +0000 (UTC)
commit 35fc671895e451630174267752aad8a472bd367f
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Jun 26 17:15:36 2020 +0200
Adjust FolderWidget for being visible while scanning
src/baobab-folder-display.vala | 2 ++
src/baobab-window.vala | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/baobab-folder-display.vala b/src/baobab-folder-display.vala
index e9131be..a16fde8 100644
--- a/src/baobab-folder-display.vala
+++ b/src/baobab-folder-display.vala
@@ -56,6 +56,8 @@ namespace Baobab {
list_store.insert_with_values (null, -1,
Scanner.Columns.NAME, location.name);
+ folder_column_icon_renderer.visible = false;
+
location_progress_handler = location_.progress.connect (() => {
Gtk.TreeIter iter;
list_store.get_iter_first (out iter);
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 5603f0b..1c09d9c 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -315,7 +315,7 @@ namespace Baobab {
void on_folder_display_activated () {
var path = folder_display.path;
- if (path.get_depth () > 1) {
+ if (path != null && path.get_depth () > 1) {
path.up ();
reroot_treeview (path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]