Skip to content

Commit

Permalink
Notification duration implemented wrong. This fix works but it's a hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed May 7, 2020
1 parent 619c0e8 commit de1ade8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static void guiShowNotifications(void)
if (showLngPopup && popupTimer >= 20)
guiRenderNotifications("LNG", lngGetFilePath(lngGetGuiValue()), y);

if (popupTimer >= CLOCKS_PER_SEC / 2000) {
if (popupTimer >= 60*5) { /* HACK: 5 seconds @ 60fps */
guiResetNotifications();
showCfgPopup = 0;
}
Expand Down

0 comments on commit de1ade8

Please sign in to comment.