mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-29 02:02:00 +08:00
Added .bgcode and .bgc extensions to method MainFrame::load_config_file()
This commit is contained in:
parent
d62ca6646c
commit
1a06dc0d05
@ -1914,8 +1914,8 @@ void MainFrame::load_config_file()
|
|||||||
return;
|
return;
|
||||||
wxFileDialog dlg(this, _L("Select configuration to load:"),
|
wxFileDialog dlg(this, _L("Select configuration to load:"),
|
||||||
!m_last_config.IsEmpty() ? get_dir_name(m_last_config) : wxGetApp().app_config->get_last_dir(),
|
!m_last_config.IsEmpty() ? get_dir_name(m_last_config) : wxGetApp().app_config->get_last_dir(),
|
||||||
"config.ini", "INI files (*.ini, *.gcode)|*.ini;*.INI;*.gcode;*.g", wxFD_OPEN | wxFD_FILE_MUST_EXIST);
|
"config.ini", "INI files (*.ini, *.gcode, *.bgcode)|*.ini;*.INI;*.gcode;*.g;*.bgcode;*.bgc", wxFD_OPEN | wxFD_FILE_MUST_EXIST);
|
||||||
wxString file;
|
wxString file;
|
||||||
if (dlg.ShowModal() == wxID_OK)
|
if (dlg.ShowModal() == wxID_OK)
|
||||||
file = dlg.GetPath();
|
file = dlg.GetPath();
|
||||||
if (! file.IsEmpty() && this->load_config_file(file.ToUTF8().data())) {
|
if (! file.IsEmpty() && this->load_config_file(file.ToUTF8().data())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user