-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
The Update Check Notification interrupts reading the Add-on Compatibility Warning Notification, the Welcome Dialog and the Usage Stats Question #9174
Comments
It would be much simpler just to move the update check after the first restart of NVDA, instead of performing the update check at the first launch of NVDA. |
@Adriani90: That's not possible, because you cannot use the file "nvda-old.log" to figure out if NVDA was restarted. So you would need a new parameter in the file "nvda.ini" for doing this. And that new parameter isn't necessary in my above mentioned solution. Furthermore you must ensure that the user already know and set all the above mentioned parameters for performing or not performing the update check procedure correctly. |
You don't need to call nvda_old.log to identify if NVDA has been restarted or not. I would assume there is another mechanism which also can be used (i.e. coresponding event in windows, a coresponding registry key delivering this information etc. @JulienCochuyt what do you think? |
Please explain this. The above checks are done in the background. The end user will only note that the update window no longer interrupts him in some situations on startup. And the Windows Registry doesn't work for portable copies of NVDA. |
Sometimes the data usage stats appears first, after that the welcome dialog. Sometimes this behavior is the other way round. And sometimes there are other dialogs appearing, i.e. regarding addon compatibility if you already have a user configuration in %appdata% on your system from any previous NVDA installation. That’s why it would be really difficult for a developer to implement your proposal consistently. Doing it after a restart would work around all dialogs that could possibly appear after the first launch. But that’s why I asked Julien for his opinion on this as well.
|
This would be an issue and has to be fixed. I never noted such a behavior – on portable copies, which I set up for testing.
I had no knowledge about this warning dialog. Well, then this also has to be fixed to get a strict order. And in my opinion if-then conditions are the best way to do this. And in the end the UX will be better. |
This behavior is I think rather a WX issue and sometimes also related to system performance. So no way to fix this reliably in NVDA.
Regarding if parameters, For me at least, I prefer less code but same reliable results rather than lots of code which in turn cannot be easily maintained if there are many changes in the future.
|
@Adriani90 wrote:
IMHO the update prompt shouldn't ever appear before the "Welcome" and the "Allow usage stats" dialogs have been dismissed - whatever the answers the user gave. This looks fairly easy to implement for what I can see in the code at a first glance. @DrSooom for clarity, could you please re-title this ticket something like "Update check prompt interrupts reading the Welcome dialog" as this is clearly an issue.
I can't find in the source code any way the "Allow usage stats" dialog could appear before the "Welcome" dialog.
I agree this is much more tricky.
Indeed, but my personal preference would still be to be prompted for update as soon as the "Allow usage stats" dialog has been dismissed on a fresh install on a new computer. @DrSooom wrote:
I agree the update prompt should be displayed after, and only after the "Allow usage stats" dialog.
Tested and not reproduced with the 2019.3.1 installer. |
@JulienCochuyt: Do you know if it is possible to check which NVDA window, dialog or message is currently open? (I think I recently saw something like a window string in the logfiles.) If this is the case then it's enough just to add a short, new procedure before the Update Check Notification window appears. This procedure checks only if one of the three above mentioned windows are open and if this is true, then it will wait 300 seconds and repeat that step. This would be the easiest way to solve this issue. |
@DrSooom wrote:
IIMNW, this info is not yet available. There are other tickets attempting to reach that goal, notably in order to facilitate focusing back open dialogs and ease shutdown. These won't however be as easy to solve as this very issue, due to the impact being much bigger.
For what I can see in the source code, there are far simpler approaches, at least to ensure proper announcement of the Welcome dialog and the Usage Stats prompt. |
I am closing this in favor of #2257. That discussion contains more concrete proposals and technical aspects to consider. |
Steps to reproduce:
Actual behaviour:
Expected behaviour:
There are several steps to do to fix this issue. All the below mentioned parameters regard to the "nvda.ini". (Hopefully I made no mistake here.) So, first of all …
Reasons:
Extend if-parameters on startup:
Extend if-parameters after closing the Welcome Dialog:
Extend if-parameters after closing the Usage Stats Dialog:
Conclusion:
There are now three points at startup where NVDA checks for updates. After closing the Welcome Dialog with "OK" or "Cancel", and the Usage Stats Dialog with "Yes" or "no" ,the update check procedure will each time enforced again if "startupNotification = True" and "autoCheck = True".
System configuration
NVDA installed/portable/running from source:
Portable, but could be the same behaviour with an installed version.
NVDA version:
NVDA 2018.4 (stable)
Windows version:
Tested on Windows 7 64-Bit, but could be the same until win10-1809/win10-19h1.
Other questions
Does the issue still occur after restarting your PC?
Not tested. Well, I guess it doesn't matter.
Have you tried any other versions of NVDA?
No, but I guess it's the same with the 2018.3.x versions. Older versions of NVDA haven't the Usage Stats Dialog included.
CC: @michaelDCurran
The text was updated successfully, but these errors were encountered: