mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:08:58 +08:00
Remove debug prints
Oops. Contributes to issue CURA-2692.
This commit is contained in:
parent
db0fb0c652
commit
4ef2caddf5
@ -56,14 +56,11 @@ class MachineNameValidator(QObject):
|
|||||||
def updateValidation(self, new_name):
|
def updateValidation(self, new_name):
|
||||||
is_valid = self.validate(new_name, 0)
|
is_valid = self.validate(new_name, 0)
|
||||||
if is_valid == QValidator.Acceptable:
|
if is_valid == QValidator.Acceptable:
|
||||||
print("VALID")
|
|
||||||
self.validation_regex = "^.*$" #Matches anything.
|
self.validation_regex = "^.*$" #Matches anything.
|
||||||
else:
|
else:
|
||||||
print("BROKEN!")
|
|
||||||
self.validation_regex = "a^" #Never matches (unless you manage to get "a" before the start of the string... good luck).
|
self.validation_regex = "a^" #Never matches (unless you manage to get "a" before the start of the string... good luck).
|
||||||
self.validationChanged.emit()
|
self.validationChanged.emit()
|
||||||
|
|
||||||
@pyqtProperty("QRegExp", notify=validationChanged)
|
@pyqtProperty("QRegExp", notify=validationChanged)
|
||||||
def machineNameRegex(self):
|
def machineNameRegex(self):
|
||||||
print(self.machine_name_regex)
|
|
||||||
return QRegExp(self.machine_name_regex)
|
return QRegExp(self.machine_name_regex)
|
Loading…
x
Reference in New Issue
Block a user