-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listbox for plugindialog #2137
Listbox for plugindialog #2137
Conversation
154c0c3
to
cd34291
Compare
The weirdness was because I messed up gsettings. Cleaned it up and it's ready for review. Hopefully based of this I can do the same for the ManagerDeviceList to make it much easier to implement a new design. |
cd34291
to
d3a18b3
Compare
d3a18b3
to
3ffbbd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test but the code lgtm.
3ffbbd2
to
bfa4bd5
Compare
bfa4bd5
to
6ae4ddf
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I still see some weirdness with enabling/disabling plugins but I suspect I messed up my gsettings in the process. Putting it out here as a possible option to use for blueman-manager's device list.
The idea here is that we make our own widget in the factory function and then optionally bind the GObject property to widgets. Then updating the
GObject
property will automatically update the UI. The plugin dialog is not very dynamic and used statefulSimpleAction
for the checkbox but binding the enabled property is also an option.mypy was very unhappy so some of the typing annotation looks weird and I had to cast the
PluginItem
properties to convince it.The other option is to use
ListBoxRows
and insert them manually into theListBox
.