PetitTournesol / Edgeware

Elsavirus inspired fetishware, built from the ground up to use interchangeable packages for better user experience.
MIT License
130 stars 96 forks source link

Combining Hibernate + Timer mode is not compatible - Timer mode's end shuts down program with no deployment #25

Open Zeffles opened 1 year ago

Zeffles commented 1 year ago

Hey! Really love the program, it's dope! I was intending to use both the hibernate and timer mode, to basically cause a randomized time delay for the timer mode to trigger. This, however, doesn't work, unless the timer duration is higher than the hibernate duration.

To reproduce: Set the minimum or maximum sleep of hibernate higher than the timer, activate both. The command line will open after the timer duration has passed, and then close itself. The Edgeware icon in the task bar also becomes unresponsive / goes away on mouse-over. If one sets the sleep lower than the timer, the payload triggers correctly, but things get obviously janky due to overlap. On a match of both, the payload of hibernate just triggers, and shuts itself down immediately - basically hitting timer mode's "remove everything" trigger right as it goes off.

This is probably due to how time is managed in the program - Timer's internal clock ticks forward, while Hibernate keeps it from releasing, then timer realizes "Alright, a minute has passed, shutting down." Could this be looked at? I'd appreciate it, since I think the ability to have a semi-random time delayed timer mode would be great!