mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 16:08:43 +03:00
Merge branch 'main' of https://github.com/QIDITECH/QIDISlicer
This commit is contained in:
@@ -1291,6 +1291,8 @@ bool GUI_App::on_init_inner()
|
||||
associate_3mf_files();
|
||||
if (app_config->get_bool("associate_stl"))
|
||||
associate_stl_files();
|
||||
if (app_config->get_bool("associate_step"))
|
||||
associate_step_files();
|
||||
#endif // __WXMSW__
|
||||
|
||||
preset_updater = new PresetUpdater();
|
||||
@@ -2605,6 +2607,8 @@ void GUI_App::open_preferences(const std::string& highlight_option /*= std::stri
|
||||
associate_3mf_files();
|
||||
if (app_config->get_bool("associate_stl"))
|
||||
associate_stl_files();
|
||||
if (app_config->get_bool("associate_step"))
|
||||
associate_step_files();
|
||||
}
|
||||
else {
|
||||
if (app_config->get_bool("associate_gcode"))
|
||||
@@ -3389,6 +3393,12 @@ void GUI_App::associate_stl_files()
|
||||
associate_file_type(L".stl", L"QIDI.Slicer.1", L"QIDISlicer", true);
|
||||
}
|
||||
|
||||
void GUI_App::associate_step_files()
|
||||
{
|
||||
associate_file_type(L".step", L"QIDI.Slicer.1", L"QIDISlicer", true);
|
||||
associate_file_type(L".stp", L"QIDI.Slicer.1", L"QIDISlicer", true);
|
||||
}
|
||||
|
||||
void GUI_App::associate_gcode_files()
|
||||
{
|
||||
associate_file_type(L".gcode", L"QIDISlicer.GCodeViewer.1", L"QIDISlicerGCodeViewer", true);
|
||||
|
||||
Reference in New Issue
Block a user