Description of the bug #80

Open
opened 2026-02-21 14:07:32 +01:00 by desbeers · 0 comments

Describe the bug

I have an issue with a SpinRow widget if the Binding is inside a nested Struct.

  • A direct Binding works fine (Int)
  • A direct Struct binding works fine (Struct -> var)
  • A nested Struct binding (Struct -> var inside a Struct) does not work

I use the SpinRow inside a Preference dialog

  • The value of the SpinRow will reset to initial value
  • After chancing the value, closing the dialog and opening it again the application will crash (most of the time)

I don't have any other issues with widgets and nested Structs in a Preference dialog; see my ChordProvider application.

So, a temporary solution would be to decouple the nested Struct but that means I have to pass another Binding around the application again.

To Reproduce

To show the issue; I wrote a Demo with comments in the code that can be build with Flatpak:

https://github.com/Desbeers/Chord-Provider/tree/main/AdwaitaDebug

(manifest is in the root of my ChordProvider project)

Expected behavior

A nested Struct Binding should behave like any other Binding

Additional context

No response

### Describe the bug I have an issue with a `SpinRow` widget if the Binding is inside a nested Struct. - A `direct` Binding works fine (Int) - A `direct` Struct binding works fine (Struct -> var) - A `nested` Struct binding (Struct -> var inside a Struct) does not work I use the `SpinRow` inside a `Preference` dialog - The value of the `SpinRow` will reset to initial value - After chancing the value, closing the dialog and opening it again the application will crash (most of the time) I don't have any other issues with widgets and nested Structs in a `Preference` dialog; see my ChordProvider application. So, a temporary solution would be to decouple the nested Struct but that means I have to pass another Binding around the application again. ### To Reproduce To show the issue; I wrote a Demo with comments in the code that can be build with Flatpak: https://github.com/Desbeers/Chord-Provider/tree/main/AdwaitaDebug (manifest is in the root of my ChordProvider project) ### Expected behavior A nested Struct Binding should behave like any other Binding ### Additional context _No response_
desbeers added the
bug
label 2026-02-21 14:07:32 +01:00
Sign in to join this conversation.
No Milestone
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/adwaita-swift#80
No description provided.