41 m_identityNote->SetLabel(
_(
"Edits apply to this repository only." ) );
44 [
this]( wxCommandEvent& )
53 if( !
m_dialog->SessionStillCurrent() )
56 auto identity = std::make_shared<KIGIT::GIT_IDENTITY>();
62 *identity = KIGIT::ReadGitIdentity( aCommon );
66 if( !m_dialog->SessionStillCurrent() )
69 GitUserConfig config =
70 KIGIT::ResolveGitIdentity( *identity, Pgm().GetCommonSettings()->m_Git, wxGetUserName() );
71 m_repoUserName->ChangeValue( config.authorName );
72 m_repoUserEmail->ChangeValue( config.authorEmail );
79 if( !
m_dialog->SessionStillCurrent() )
82 std::shared_ptr<KIGIT_COMMON> common =
m_frame->Prj().GetGitCommon();
83 auto identity = std::make_shared<KIGIT::GIT_IDENTITY>();
92 [
this, common, identity]()
96 if(
m_dialog->SessionStillCurrent() )
The base frame for deriving all KiCad main window classes.
The advanced Git window: a non-modal dialog with a top bar naming the repository and branch and a sid...
The project's git session.
wxStaticText * m_identityNote
wxTextCtrl * m_repoUserName
wxTextCtrl * m_repoUserEmail
PANEL_GIT_REPOSITORY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
KIGIT_QUERY m_configQuery
void Populate()
Read the repository identity on a worker and update the display.
GIT_ADVANCED_DIALOG * m_dialog
PANEL_GIT_REPOSITORY(wxWindow *aParent, GIT_ADVANCED_DIALOG *aDialog, EDA_BASE_FRAME *aFrame)
Base window classes and related definitions.
GIT_IDENTITY ReadGitIdentity(KIGIT_COMMON &aCommon)
Read on a worker while holding the session's action lock.
bool EditGitIdentity(wxWindow *aParent, EDA_BASE_FRAME *aFrame, const std::shared_ptr< KIGIT_COMMON > &aCommon, const GIT_IDENTITY &aIdentity)
Edit the repository's author and refresh Git views after saving.