mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:15:07 +00:00
HackStudio: Only refresh Git widget on save if initialized
This commit is contained in:
parent
e46b4e0865
commit
b82a254da0
3 changed files with 35 additions and 7 deletions
|
@ -43,10 +43,13 @@ public:
|
|||
|
||||
void refresh();
|
||||
void set_view_diff_callback(ViewDiffCallback callback);
|
||||
bool initialized() const { return !m_git_repo.is_null(); };
|
||||
|
||||
private:
|
||||
explicit GitWidget(const LexicalPath& repo_root);
|
||||
|
||||
bool initialize();
|
||||
bool initialize_if_needed();
|
||||
void stage_file(const LexicalPath&);
|
||||
void unstage_file(const LexicalPath&);
|
||||
void commit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue