Skip to content

Allow infinite timeout to permanently suppress messages (for a session) #6

@smathot

Description

@smathot

Right now, the timeout keyword in QNotifications.__init__() can be None, indicating that subsequent identical messages should not be suppressed, or a positive numeric, indicating that identical messages should be suppressed for an X number of seconds.

The problem (or rather inconvenience) is that you want suppress some message indefinitely, at least for the duration of the application session. An example is here: open-cogsci/QOpenScienceFramework#5

I therefore propose to:

  • Add a Silence button to each message, which will cause the message to be suppressed indefinitely. This button could be to the left of the regular close button, with a clear icon.
  • Allow timeout to be infinite, either the string 'infinite' or (more elegantly) math.inf. In this case, the silence button should be hidden, because the regular close button already silences the message.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions