- in Isolation Plugin made sure that the last displayed message is the warning, in the case of using tool validation and the tool is not validated
- some more work in the Excellon Editor - Drill adding
- some fixes in the image loader when clicking the an image that is in the list of previous loaded files
- a small fin in the SVG parser
- added a new Tcl command that is returning the name of the active object ('get_active') to accompany the 'set_active' command
- a small fix for the 2d graphic mode by replacing the q5agg matplotlib backend with the qtagg backend which should work with the Qt6
This commit is contained in:
@@ -218,7 +218,7 @@ class ToolImage(AppTool):
|
||||
else:
|
||||
self.import_image(filename, import_mode, type_obj, dpi, mode, mask, svg_text, min_area)
|
||||
|
||||
def import_image(self, filename, import_mode, o_type=_("Gerber"), dpi=96, mode='black',
|
||||
def import_image(self, filename, import_mode='raster', o_type=_("Geometry"), dpi=96, mode='black',
|
||||
mask=None, svg_text=None, min_area=0.0, outname=None, silent=False):
|
||||
"""
|
||||
Adds a new Geometry Object to the projects and populates
|
||||
@@ -331,8 +331,10 @@ class ToolImage(AppTool):
|
||||
name = outname or filename.split('/')[-1].split('\\')[-1]
|
||||
units = self.app.app_units
|
||||
|
||||
self.app.app_obj.new_object(obj_type, name, obj_init)
|
||||
|
||||
res = self.app.app_obj.new_object(obj_type, name, obj_init)
|
||||
if res == 'fail':
|
||||
self.app.inform.emit("[ERROR_NOTCL] %s" % _("Failed."))
|
||||
return
|
||||
# Register recent file
|
||||
self.app.file_opened.emit("image", filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user