Skip to content

Replace Printer's boolean flags with threading.Event #146

@CRImier

Description

@CRImier

Printer.skip_screen_flag = False #A flag which is set for skipping screens and is polled while printer is displaying things

This solution is old. Now I see that:

  • Any simultaneously running Printers will probably interfere
  • It's not thread-safe - so, we might miss the changes when the CPU load is too high (as it used to happen with Refreshers and other UI elements).

We can use threading.Event instead, just like we do in BaseUIElements.

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