Merge branch 'rr1-maint'
This commit is contained in:
commit
b60b854410
2 changed files with 11 additions and 2 deletions
|
@ -298,6 +298,7 @@ namespace
|
||||||
cb = _cb;
|
cb = _cb;
|
||||||
panel = new wxPanel(in_window);
|
panel = new wxPanel(in_window);
|
||||||
top = new wxBoxSizer(wxVERTICAL);
|
top = new wxBoxSizer(wxVERTICAL);
|
||||||
|
panel->SetSizer(top);
|
||||||
box = new wxStaticBox(panel, wxID_ANY, wxT(""));
|
box = new wxStaticBox(panel, wxID_ANY, wxT(""));
|
||||||
intsizer = new wxStaticBoxSizer(box, wxVERTICAL);
|
intsizer = new wxStaticBoxSizer(box, wxVERTICAL);
|
||||||
intsizer->Add(new wxStaticText(panel, wxID_ANY, wxT("File")));
|
intsizer->Add(new wxStaticText(panel, wxID_ANY, wxT("File")));
|
||||||
|
@ -939,14 +940,21 @@ wxwin_project::wxwin_project(loaded_rom& rom)
|
||||||
wxCommandEventHandler(wxwin_project::on_quit), NULL, this);
|
wxCommandEventHandler(wxwin_project::on_quit), NULL, this);
|
||||||
toplevel->Add(buttonbar, 0, wxGROW);
|
toplevel->Add(buttonbar, 0, wxGROW);
|
||||||
|
|
||||||
|
bool file_filled = false;
|
||||||
{
|
{
|
||||||
std::ifstream s(get_config_path() + "/" + our_rom_name + ".ls");
|
std::ifstream s(get_config_path() + "/" + our_rom_name + ".ls");
|
||||||
std::getline(s, last_save);
|
std::getline(s, last_save);
|
||||||
savefile->SetValue(towxstring(last_save));
|
savefile->SetValue(towxstring(last_save));
|
||||||
|
if(last_save != "")
|
||||||
|
file_filled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxNotebookEvent e2;
|
//This gets re-enabled later if needed.
|
||||||
on_tab_select(e2);
|
load_file = true;
|
||||||
|
load->Disable();
|
||||||
|
notebook->SetSelection(file_filled ? 0 : 1);
|
||||||
|
wxCommandEvent e2;
|
||||||
|
on_filename_change(e2);
|
||||||
|
|
||||||
mainblock->SetSizeHints(this);
|
mainblock->SetSizeHints(this);
|
||||||
new_sizer->SetSizeHints(this);
|
new_sizer->SetSizeHints(this);
|
||||||
|
|
|
@ -1533,6 +1533,7 @@ wxeditor_esettings::wxeditor_esettings(wxWindow* parent)
|
||||||
tabset->AddPage(new wxeditor_esettings_aliases(tabset), wxT("Aliases"));
|
tabset->AddPage(new wxeditor_esettings_aliases(tabset), wxT("Aliases"));
|
||||||
tabset->AddPage(new wxeditor_esettings_bindings(tabset), wxT("Bindings"));
|
tabset->AddPage(new wxeditor_esettings_bindings(tabset), wxT("Bindings"));
|
||||||
tabset->AddPage(new wxeditor_esettings_advanced(tabset), wxT("Advanced"));
|
tabset->AddPage(new wxeditor_esettings_advanced(tabset), wxT("Advanced"));
|
||||||
|
tabset->SetMinSize(wxSize(400, 420));
|
||||||
top_s->Add(tabset, 1, wxGROW);
|
top_s->Add(tabset, 1, wxGROW);
|
||||||
|
|
||||||
wxBoxSizer* pbutton_s = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* pbutton_s = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue