fix(widget_state_manager): always setting visible to true

This commit is contained in:
wyzula_j authored and Klaus Wakonig committed 2025-11-24 10:55:17 +01:00
1 parent b632fd6651
commit f5d1868f63
1 file changed
+4 -4
+4 -4
View File
@@ -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