mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-04 06:59:25 +00:00
Clear ref cache in action interface
This commit is contained in:
parent
94c65b14b7
commit
669701f428
|
@ -119,7 +119,6 @@ class RefActionRename : GitgExt.Action, GitgExt.RefAction, Object
|
|||
return;
|
||||
}
|
||||
|
||||
action_interface.application.repository.clear_refs_cache();
|
||||
action_interface.replace_ref(reference, new_ref);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,16 +35,19 @@ class ActionInterface : Object, GitgExt.RefActionInterface
|
|||
|
||||
public void add_ref(Gitg.Ref reference)
|
||||
{
|
||||
application.repository.clear_refs_cache();
|
||||
d_refs_list.add_ref(reference);
|
||||
}
|
||||
|
||||
public void remove_ref(Gitg.Ref reference)
|
||||
{
|
||||
application.repository.clear_refs_cache();
|
||||
d_refs_list.remove_ref(reference);
|
||||
}
|
||||
|
||||
public void replace_ref(Gitg.Ref old_ref, Gitg.Ref new_ref)
|
||||
{
|
||||
application.repository.clear_refs_cache();
|
||||
d_refs_list.replace_ref(old_ref, new_ref);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue