- changing the Excellon Object color from Project Tab context menu is now persistent

This commit is contained in:
Marius Stanciu
2021-10-08 23:48:18 +03:00
committed by Marius
parent af0fce63e9
commit 866e2fb4b7
4 changed files with 10 additions and 2 deletions

View File

@@ -300,8 +300,12 @@ class AppObject(QtCore.QObject):
if obj.kind != 'document' and obj.kind != 'script':
try:
if obj.kind == 'excellon':
obj.fill_color = self.app.defaults["excellon_plot_fill"]
obj.outline_color = self.app.defaults["excellon_plot_line"]
if self.app.defaults["excellon_color"]:
obj.fill_color = self.app.defaults["excellon_color"][0]
obj.outline_color = self.app.defaults["excellon_color"][1]
else:
obj.fill_color = self.app.defaults["excellon_plot_fill"]
obj.outline_color = self.app.defaults["excellon_plot_line"]
if obj.kind == 'gerber':
if self.app.defaults["gerber_store_color_list"] is True: