Skip to content

Commit

Permalink
#5662: Make GitFetch command update the status bar widget, forward th…
Browse files Browse the repository at this point in the history
…e call
  • Loading branch information
codereader committed Jul 31, 2021
1 parent cf5212b commit 29f44c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions plugins/vcs/GitModule.cpp
Expand Up @@ -120,14 +120,7 @@ void GitModule::fetch(const cmd::ArgumentList& args)
return;
}

try
{
_repository->fetchFromTrackedRemote();
}
catch (const git::GitException& ex)
{
throw cmd::ExecutionFailure(ex.what());
}
_statusBarWidget->startFetchTask();
}

void GitModule::createPreferencePage()
Expand Down
3 changes: 2 additions & 1 deletion plugins/vcs/ui/VcsStatus.h
Expand Up @@ -51,9 +51,10 @@ class VcsStatus final :

void setRepository(const std::shared_ptr<git::Repository>& repository);

void startFetchTask();

private:
void createPopupMenu();
void startFetchTask();
void restartFetchTimer();
void onIntervalReached(wxTimerEvent& ev);
void onIdle(wxIdleEvent& ev);
Expand Down

0 comments on commit 29f44c9

Please sign in to comment.