mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-06 07:59:12 +00:00
Do not auto-unexpand diff in diff only mode
This commit is contained in:
parent
36d63f1889
commit
fe148bac39
|
@ -266,6 +266,7 @@ public class Gitg.DiffView : Gtk.Grid
|
|||
{
|
||||
d_commit_details.commit = null;
|
||||
d_commit_details.hide();
|
||||
d_commit_details.expanded = true;
|
||||
}
|
||||
|
||||
if (d_diff != null)
|
||||
|
@ -403,8 +404,11 @@ public class Gitg.DiffView : Gtk.Grid
|
|||
add_hunk();
|
||||
add_file();
|
||||
|
||||
d_commit_details.expanded = (files.size <= 1);
|
||||
d_commit_details.expander_visible = (files.size > 1);
|
||||
if (d_commit != null)
|
||||
{
|
||||
d_commit_details.expanded = (files.size <= 1);
|
||||
d_commit_details.expander_visible = (files.size > 1);
|
||||
}
|
||||
|
||||
foreach (var file in files)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue