This fixes #71 by merging #70 with new code which will allow re-authentication when desired.
Now, when a user dismisses a pkexec prompt, ConsoleThread will ignore future REFRESH messages. When in this state, AppAnvil will hide the TreeView for each tab, instead showing a message explaining the situation. If the user wants to re-authenticate, they can press the button labeled: "Retry Authentication".
Cancelling authentication will not completely disable all functionality of the application. For example, the "Load Profiles" functionality is unaffected. Also, logs may still be load in some circumstances.
Here is an example screenshot of the new functionality:
This fixes #71 by merging #70 with new code which will allow re-authentication when desired.
Now, when a user dismisses a pkexec prompt,
ConsoleThread
will ignore future REFRESH messages. When in this state, AppAnvil will hide the TreeView for each tab, instead showing a message explaining the situation. If the user wants to re-authenticate, they can press the button labeled: "Retry Authentication".Cancelling authentication will not completely disable all functionality of the application. For example, the "Load Profiles" functionality is unaffected. Also, logs may still be load in some circumstances.
Here is an example screenshot of the new functionality: