feat(modulo): wire up move bundle page in wizard, related to #844

This commit is contained in:
Federico Terzi 2021-11-05 20:29:01 +01:00
parent af6e91b516
commit 2d84db409d
3 changed files with 8 additions and 2 deletions

View File

@ -115,6 +115,7 @@ protected:
void add_path_continue_clicked( wxCommandEvent& event );
void accessibility_enable_clicked( wxCommandEvent& event );
void quit_espanso_clicked( wxCommandEvent& event );
void move_bundle_quit_clicked( wxCommandEvent& event );
void navigate_to_next_page_or_close();
void change_default_button(int target_page);
@ -373,6 +374,11 @@ void DerivedFrame::change_default_button(int target_page)
}
}
void DerivedFrame::move_bundle_quit_clicked( wxCommandEvent& event )
{
Close(true);
}
bool WizardApp::OnInit()
{
wxInitAllImageHandlers();

View File

@ -758,7 +758,7 @@
<property name="gripper">0</property>
<property name="hidden">0</property>
<property name="id">wxID_ANY</property>
<property name="label">Start</property>
<property name="label">Quit</property>
<property name="margins"></property>
<property name="markup">0</property>
<property name="max_size"></property>

View File

@ -86,7 +86,7 @@ WizardFrame::WizardFrame( wxWindow* parent, wxWindowID id, const wxString& title
bSizer22->Add( 0, 20, 1, wxEXPAND, 5 );
move_bundle_quit_button = new wxButton( move_bundle_panel, wxID_ANY, wxT("Start"), wxDefaultPosition, wxDefaultSize, 0 );
move_bundle_quit_button = new wxButton( move_bundle_panel, wxID_ANY, wxT("Quit"), wxDefaultPosition, wxDefaultSize, 0 );
move_bundle_quit_button->SetDefault();
bSizer22->Add( move_bundle_quit_button, 0, wxALIGN_RIGHT|wxALL, 10 );