Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.
This repository was archived by the owner on May 28, 2024. It is now read-only.

hideafter: doesn't reset when a new hud is called #6

@mefistody

Description

@mefistody

I am not sure if it's a bug or a feature, but I changed the hideAfter method with this:

  • (void)hideAfter:(NSTimeInterval)delay {
    [NSObject cancelPreviousPerformRequestsWithTarget:self
    selector:@selector(hide)
    object:nil];

    [self performSelector:@selector(hide) withObject:nil afterDelay:delay];
    }

This way, when a new hud is shown it will stay the time specified even though there was another hud showing up before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions