mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-05 23:50:07 +00:00
window: fix title
Ensure we first set the title and then the headerbar title since setting the title will also set the headerbar title
This commit is contained in:
parent
4d069fa7a1
commit
9d10e02a53
|
@ -392,7 +392,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
|
|||
var parent_path = Utils.replace_home_dir_with_tilde(workdir.get_parent());
|
||||
|
||||
title = @"$(d_repository.name) ($parent_path)";
|
||||
windowtitle = @"$name - gitg";
|
||||
windowtitle = @"$(d_repository.name) - gitg";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -420,15 +420,14 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
|
|||
|
||||
if (Gitg.PlatformSupport.use_native_window_controls())
|
||||
{
|
||||
d_header_bar.set_title(subtitle);
|
||||
this.title = title;
|
||||
d_header_bar.set_title(subtitle);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.title = windowtitle;
|
||||
d_header_bar.set_title(title);
|
||||
d_header_bar.set_subtitle(subtitle);
|
||||
|
||||
this.title = windowtitle;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue