Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/FolderManager/FolderItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace Scratch.FolderManager {

dummy = new Code.Widgets.SourceList.Item ("");
// Must add dummy on unexpanded folders else expander will not show
dummy.selectable = false;
((Code.Widgets.SourceList.ExpandableItem)this).add (dummy);
has_dummy = true;

Expand Down
9 changes: 6 additions & 3 deletions src/Widgets/SourceList/SourceList.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,10 @@ public class SourceList : Gtk.ScrolledWindow {
set_tooltip_row (tooltip, path);

if (item.tooltip == null) {
tooltip.set_markup (item.name);
should_show = true;
if (item.name != "") {
tooltip.set_markup (item.name);
should_show = true;
}
} else if (item.tooltip != "") {
tooltip.set_markup (item.tooltip);
should_show = true;
Expand Down Expand Up @@ -2019,8 +2021,9 @@ public class SourceList : Gtk.ScrolledWindow {

if (item != null) {
// Main categories ARE NOT selectable, so check for that
if (!data_model.is_category (item, null, path))
if (!data_model.is_category (item, null, path)) {
selectable = item.selectable;
}
}

return selectable;
Expand Down