-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add settings options and overlay buttons #10
Conversation
…nd setting for refresh interval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is super cool, once I have the time to play with it, I will merge this :)
@@ -48,5 +45,16 @@ const refreshChaosRecipe = async () => { | |||
}; | |||
|
|||
ipcRenderer.on('forceChaosRecipeRefresh', () => refreshChaosRecipe()); | |||
setInterval(() => refreshChaosRecipe(), POLLING_DELAY); | |||
setInterval(() => refreshChaosRecipe(), settings.get('overlay.refreshTime') * 1000 || 60000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep a DEFAULT_REFRESH_TIME
constant, so we can do
(settings.get('overlay.refreshTime') || DEFAULT_REFRESH_TIME) * 1000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, it's more user friendly like this :)
I don't know why I can't commit on this change, so if u can do it that's nice :)
Labels for overlay sizes Co-authored-by: Pascal Boutin <contact@pboutin.net>
Constant for refresh time Co-authored-by: Pascal Boutin <contact@pboutin.net>
Apply labels for overlay sizes in html Co-authored-by: Pascal Boutin <contact@pboutin.net>
Will merge and apply the final tweaks on master directly, thanks for the contribution ! |
Added buttons in overlay to reopen settings window and force refresh of tabs.
Added settings to customize interval between refresh and change the size of the overlay.