Skip to content

Make the fallback dialog less annoying - #3297

Open
infirit wants to merge 6 commits into
blueman-project:mainfrom
infirit:fallbackdialogfixes
Open

Make the fallback dialog less annoying#3297
infirit wants to merge 6 commits into
blueman-project:mainfrom
infirit:fallbackdialogfixes

Conversation

@infirit

@infirit infirit commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Whether we should close automatically is still an open question #3257.

  • Add a close button (with accelerator) if no actions were provided, People can now easily close it with a mouse or keyboard shortcut.
  • It drops the fade in and out (broken) effect as imo it doesn't really add much but makes it hard to see/read.
  • Actions are reworked and are a NamedTuple which makes them much nicer to deal with.
  • Actions are now handled (mostly) the same between the bubble and dialog.

infirit added 6 commits June 7, 2026 19:30
There is no close button in the window decoration for users to close. And
While the escape key may work it's not communicated at all.
I have no idea what this is supposed to do and looks completely unused.
We don't reuse any and we shouldn't so make sure it's gone.
It adds nothing and just makes it hard to see.
Especially in the fallback actions were confusing and bugged. For example
add_action was just a stub so the fallback never had an Open button for
completed transfers.
@infirit
infirit force-pushed the fallbackdialogfixes branch from 7ccc8fa to 523d2d0 Compare June 10, 2026 16:45
@sonarqubecloud

Copy link
Copy Markdown

if actions is None:
actions = [NotificationAction("close", _("_Close"), lambda s: self.close())]

self.actions[Gtk.ResponseType.DELETE_EVENT] = "close"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fired by the window manager, e.g., in reaction to Esc or a request to close the window. I think those controls are broken now. Also, actions_cb fired for it (and any other event), and at least BlueAgent.py's on_auth_action relies on that.

self.add_button(action_name, i)
i += 1
if actions is None:
actions = [NotificationAction("close", _("_Close"), lambda s: self.close())]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.close() should be redundant here, as do_response already destroys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants