Do not recompute diff when only changing tab width

This commit is contained in:
Jesse van den Kieboom 2014-07-10 19:13:16 +02:00
parent 6115250d59
commit 8aba6770bb

View File

@ -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)