Restarting a MUI-Timer
  • Moderator
    Kronos
    Posts: 2259 from 2003/2/24
    For the next version of PastePass I want to add a timeout for the masterpassword and at the moment I'm not sure how to implement one detail.

    For this I use an InputHandler with MUIIHNF_TIMER which would after a usersetable time put up the page with Masterpassword-string.

    Say the user has set the timeout to 100sec, but after 50secs he becomes "active". Now I would want to restart the counter (at 100sec) and sofar I see 2 options:

    - remove and re-add to InputHandler to have it start again
    - set the handler to 1 sec and have a method count to 100, activity will reset this to 0

    Both seem a bit odd for me, so I'm asking the expert which one is considered the cleaner one.
  • »10.01.16 - 15:31
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3021 from 2003/3/5
    From: Canada
    Just re-add it.
  • »10.01.16 - 17:51
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2259 from 2003/2/24
    Removing not needed ?

    O.k........
  • »10.01.16 - 18:45
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3021 from 2003/3/5
    From: Canada
    Re-add as in 'remove, add' :)
  • »10.01.16 - 19:18
    Profile Visit Website