Commit 5ffcbec2 authored by Guillaume Seguin's avatar Guillaume Seguin

Don't crash if unable to read Slic3r configuration

parent 3d4c191e
...@@ -572,7 +572,6 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -572,7 +572,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if self.settings.slic3rintegration: if self.settings.slic3rintegration:
m = wx.Menu() m = wx.Menu()
self.menustrip.Append(m, _("&Slic3r"))
print_menu = wx.Menu() print_menu = wx.Menu()
filament_menu = wx.Menu() filament_menu = wx.Menu()
printer_menu = wx.Menu() printer_menu = wx.Menu()
...@@ -582,7 +581,12 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -582,7 +581,12 @@ class PronterWindow(MainWindow, pronsole.pronsole):
menus = {"print": print_menu, menus = {"print": print_menu,
"filament": filament_menu, "filament": filament_menu,
"printer": printer_menu} "printer": printer_menu}
self.load_slic3r_configs(menus) try:
self.load_slic3r_configs(menus)
self.menustrip.Append(m, _("&Slic3r"))
except IOError:
self.logError(_("Failed to load Slic3r configuration:") +
"\n" + traceback.format_exc())
# Settings menu # Settings menu
m = wx.Menu() m = wx.Menu()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment