- Sub Tool: fixed an issue due of an incorrect parameter for a QTimer start
This commit is contained in:
@@ -13,6 +13,7 @@ CHANGELOG for FlatCAM Evo beta
|
||||
- Paint Plugin: fixed issues caused by the latest changes in the Shapely module
|
||||
- NCC Plugin: some changes in the method used by the Tcl Command
|
||||
- in Preferences, added a control in the General -> GUI Settings to control the font size for the entire application; require an app restart
|
||||
- Sub Tool: fixed an issue due of an incorrect parameter for a QTimer start
|
||||
|
||||
31.05.2023
|
||||
|
||||
|
||||
@@ -87,6 +87,9 @@ class ToolSub(AppTool):
|
||||
self.pool = self.app.pool
|
||||
self.results = []
|
||||
|
||||
# start the QTimer to check for promises with 0.5 seconds period check
|
||||
self.check_interval = 500
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
AppTool.install(self, icon, separator, shortcut='Alt+W', **kwargs)
|
||||
|
||||
@@ -559,8 +562,7 @@ class ToolSub(AppTool):
|
||||
|
||||
self.sub_union = unary_union(self.sub_geo_obj.solid_geometry)
|
||||
|
||||
# start the QTimer to check for promises with 0.5 seconds period check
|
||||
self.periodic_check(500, reset=True)
|
||||
self.periodic_check(self.check_interval, reset=True)
|
||||
|
||||
if self.target_geo_obj.multigeo:
|
||||
for tool in self.target_geo_obj.tools:
|
||||
@@ -718,7 +720,7 @@ class ToolSub(AppTool):
|
||||
pass
|
||||
|
||||
self.check_thread.timeout.connect(self.periodic_check_handler)
|
||||
self.check_thread.start(QtCore.QThread.Priority.HighPriority) # noqa
|
||||
self.check_thread.start()
|
||||
|
||||
def periodic_check_handler(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user