Fix bug with velocity warning.

Add button to suppress
This commit is contained in:
sliptonic
2022-02-28 17:55:19 -06:00
parent 974bb02c4d
commit 13cd8d2c15
4 changed files with 20 additions and 6 deletions

View File

@@ -25,8 +25,11 @@ import glob
import os
import PathScripts.PathLog as PathLog
# PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# PathLog.trackModule()
if False:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
else:
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
DefaultFilePath = "DefaultFilePath"
DefaultJobTemplate = "DefaultJobTemplate"

View File

@@ -22,8 +22,13 @@
import FreeCADGui
import PathScripts.PathPreferences as PathPreferences
import PySide
import PathScripts.PathLog as PathLog
if False:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
else:
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
class AdvancedPreferencesPage:
def __init__(self, parent=None):
@@ -42,6 +47,7 @@ class AdvancedPreferencesPage:
)
def loadSettings(self):
PathLog.track()
self.form.WarningSuppressAllSpeeds.setChecked(
PathPreferences.suppressAllSpeedsWarning()
)
@@ -57,7 +63,9 @@ class AdvancedPreferencesPage:
self.form.WarningSuppressOpenCamLib.setChecked(
PathPreferences.suppressOpenCamLibWarning()
)
self.form.WarningSuppressVelocity.setChecked(PathPreferences.suppressVelocity())
self.form.WarningSuppressVelocity.setChecked(
PathPreferences.suppressVelocity()
)
self.updateSelection()
def updateSelection(self, state=None):