Merge pull request #6480 from sliptonic/bug/velocitywarn

[Path] Fix bug with velocity warning.
This commit is contained in:
sliptonic
2022-03-01 08:18:10 -06:00
committed by GitHub
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):