Moved back open_model to GUI_App

This commit is contained in:
YuSanka 2018-09-20 13:12:35 +02:00
parent bcbeb56217
commit e86f149cbd
3 changed files with 18 additions and 15 deletions

View file

@ -545,7 +545,7 @@ void add_menus(wxMenuBar *menu, int event_preferences_changed, int event_languag
}
void open_model(wxWindow *parent, wxArrayString& input_files){
auto dialog = new wxFileDialog(parent ? parent : GetTopWindow(),
auto dialog = new wxFileDialog(parent /*? parent : GetTopWindow()*/,
_(L("Choose one or more files (STL/OBJ/AMF/3MF/PRUSA):")),
g_AppConfig->get_last_dir(), "",
MODEL_WILDCARD, wxFD_OPEN | wxFD_MULTIPLE | wxFD_FILE_MUST_EXIST);