mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-10-30 08:21:27 +01:00
fix(widget_state_manager): always setting visible to true
This commit is contained in:
1 parent
b632fd6651
commit
f5d1868f63
1 file changed
+4
-4
@@ -97,12 +97,12 @@ class WidgetStateManager:
|
||||
for i in range(meta.propertyCount()):
|
||||
prop = meta.property(i)
|
||||
name = prop.name()
|
||||
skip_visible = (
|
||||
name == "visible"
|
||||
) # TODO long term wise should be figured it out on the level of ADS, hotfix for now to avoid saving visibility when ads is not on main page
|
||||
if name == "visible":
|
||||
settings.setValue(
|
||||
name, True
|
||||
) # always save visible as True to avoid invisible widgets on load
|
||||
if (
|
||||
name == "objectName"
|
||||
or skip_visible
|
||||
or not prop.isReadable()
|
||||
or not prop.isWritable()
|
||||
or not prop.isStored() # can be extended to fine filter
|
||||
|
||||
Reference in new issue
Block a user