You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that it takes a second or two to open the file selector dialog and some milliseconds to fire the onchange listener where focus has returned to the main window. If one moves his mouse at all after clicking the "File" button or after selecting the file, it will check too soon and say "No file selected." It looks like a bug in requestIdleCallback() to me, which a setTimeout() or two may need to be added to work around.
What's the problem?
When I try to restore a backup from a file, it checks if a file has been selected on mouse move or focus to know when the dialog is closed.
Reddit-Enhancement-Suite/lib/modules/backupAndRestore/providers/File.js
Line 29 in abf25d4
The problem is that it takes a second or two to open the file selector dialog and some milliseconds to fire the onchange listener where focus has returned to the main window. If one moves his mouse at all after clicking the "File" button or after selecting the file, it will check too soon and say "No file selected." It looks like a bug in
requestIdleCallback()
to me, which asetTimeout()
or two may need to be added to work around.Are there any related posts in https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues or /r/RESissues?
I didn't see an issue here, but there are several for years on /r/RESissues.
The text was updated successfully, but these errors were encountered: