From 6821dc290f81978d3f8f4dcbdd3a5286531f48f2 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:01:11 +0000 Subject: [PATCH] [Path] Remove System Unit Schema Check... ...to be replaced by document level Unit Schema Check --- src/Mod/Path/InitGui.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/Mod/Path/InitGui.py b/src/Mod/Path/InitGui.py index 12ecc06440..246ebc6d22 100644 --- a/src/Mod/Path/InitGui.py +++ b/src/Mod/Path/InitGui.py @@ -267,30 +267,6 @@ class PathWorkbench(Workbench): ) Log("Loading Path workbench... done\n") - # Warn user if current schema doesn't use minute for time in velocity - if not Path.Preferences.suppressVelocity(): - velString = FreeCAD.Units.Quantity( - 1, FreeCAD.Units.Velocity - ).getUserPreferred()[2][3:] - - if velString != "min": - current_schema = FreeCAD.Units.listSchemas(FreeCAD.Units.getSchema()) - - msg = translate( - "Path", - "The currently selected unit schema: \n '{}'\n Does not use 'minutes' for velocity values. \n \nCNC machines require feed rate to be expressed in \nunit/minute. To ensure correct G-code: \nSelect a minute-based schema in preferences.\nFor example:\n 'Metric, Small Parts & CNC'\n 'US Customary'\n 'Imperial Decimal'", - ).format(current_schema) - header = translate("Path", "Warning") - msgbox = QtGui.QMessageBox(QtGui.QMessageBox.Warning, header, msg) - - msgbox.addButton(translate("Path", "Ok"), QtGui.QMessageBox.AcceptRole) - msgbox.addButton( - translate("Path", "Don't Show This Anymore"), - QtGui.QMessageBox.ActionRole, - ) - if msgbox.exec_() == 1: - preferences().SetBool("WarningSuppressVelocity", True) - def GetClassName(self): return "Gui::PythonWorkbench"