Cura/resources/qml/Preferences
Ghostkeeper 1f9b4c3964
Handle deleting profiles better
When deleting profiles, the current item is set to null.
The Activate button was checking if the current profile was already active, and disabling the button if it was. But the button was still enabled if the current item is null because isCurrentItemActivated is only true if there is a current item. So to properly disable the button we need to check also if there is a current item.
The onItemsChanged signal can also trigger if the item that matches the toSelectItemName has no quality_changes_group, i.e. a built-in profile.

Probably fixes Sentry issue CURA-43.
2021-03-18 02:21:14 +01:00
..
Materials Defensive coding: Don't get the linked material if there is no material 2020-09-18 11:24:39 +02:00
GeneralPage.qml Disable Czech translations 2020-11-09 13:55:08 +01:00
MachinesPage.qml Disable the activate button if the machine is already active 2020-10-28 15:41:36 +01:00
ProfilesPage.qml Handle deleting profiles better 2021-03-18 02:21:14 +01:00
ProfileTab.qml Fix QML errors 2019-10-03 12:28:07 +02:00
ReadOnlySpinBox.qml Fix the updating of material diameter. 2019-07-02 15:16:41 +02:00
ReadOnlyTextArea.qml Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
ReadOnlyTextField.qml Fix Enter key handling on material management page 2018-03-16 11:05:38 +01:00
SettingVisibilityPage.qml Remove a few more usages of deprecated functions 2019-05-16 15:20:38 +02:00