mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Updated the script according to the requested changes
CURA-5734
This commit is contained in:
parent
c764b31e06
commit
cb49ffa2d2
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# This script check correctness of settings visibility list
|
||||
# This script checks the correctness of the list of visibility settings
|
||||
#
|
||||
from typing import Dict
|
||||
import os
|
||||
@ -168,12 +168,12 @@ if __name__ == "__main__":
|
||||
|
||||
setting_visibility_items = {}
|
||||
for file_path in all_setting_visibility_files:
|
||||
temp = inspector.getSettingsFromSettingVisibilityFile(file_path)
|
||||
all_settings_from_visibility_type = inspector.getSettingsFromSettingVisibilityFile(file_path)
|
||||
|
||||
base_name = os.path.basename(file_path)
|
||||
visibility_type = base_name.split('.')[0]
|
||||
visibility_type = base_name.split(".")[0]
|
||||
|
||||
setting_visibility_items[visibility_type] = temp
|
||||
setting_visibility_items[visibility_type] = all_settings_from_visibility_type
|
||||
|
||||
has_invalid_settings = inspector.validateSettingsVisibility(setting_visibility_items)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user