MainFrame: make code a bit more readable.

This commit is contained in:
Guillaume Jacquemin 2020-10-02 12:54:38 +02:00
parent a24422adcc
commit 4e1a74e03e

View file

@ -515,8 +515,9 @@ void EvtMainFrame::screenshotFileEventHandler(int event_type, const wxString& ev
} }
void EvtMainFrame::updateProfileStats() { void EvtMainFrame::updateProfileStats() {
_companyName->SetLabel(_profileManager.currentProfile()->companyName()); Profile* current_profile = _profileManager.currentProfile();
_credits->SetLabel(wxString::Format("%i", _profileManager.currentProfile()->getCredits())); _companyName->SetLabel(current_profile->companyName());
_credits->SetLabel(wxString::Format("%i", current_profile->getCredits()));
} }
void EvtMainFrame::initialiseListView() { void EvtMainFrame::initialiseListView() {