mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-07-05 01:19:31 +00:00
Do not recompute diff when only changing tab width
This commit is contained in:
parent
6115250d59
commit
8aba6770bb
|
@ -121,7 +121,7 @@ namespace Gitg
|
|||
if (d_tab_width != value)
|
||||
{
|
||||
d_tab_width = value;
|
||||
update();
|
||||
update_tab_width();
|
||||
}
|
||||
}
|
||||
default = 4;
|
||||
|
@ -452,6 +452,21 @@ namespace Gitg
|
|||
update();
|
||||
}
|
||||
|
||||
private void update_tab_width()
|
||||
{
|
||||
if (!d_loaded)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
run_javascript.begin(@"update_tab_width($d_tab_width);", null, (obj, res) => {
|
||||
try
|
||||
{
|
||||
run_javascript.end(res);
|
||||
} catch {}
|
||||
});
|
||||
}
|
||||
|
||||
private void update()
|
||||
{
|
||||
if (!d_loaded)
|
||||
|
|
Loading…
Reference in New Issue
Block a user