KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
Description of the problem
Similar to #1646, when trying to clear MDSwitch widget an exception is raised.
Describe the algorithm of actions that leads to the problem
Calling clear_widgets() on MDSwitch raises an exception.
Reproducing the problem
Screenshots of the problem
N/A
Description of Changes
New condition added to avoid
AttributeError: 'NoneType' object has no attribute 'disabled'
Screenshots of the solution to the problem
N/A
Code for testing new changes
Same code below.