[Bug] Application can be uninstalled even when an instance is active
Bug Description
The application can be uninstalled when an instance of appflowy is currently running. This causes incomplete installation and the user can still open appflowy app (user get's Unable to load asset: "assets/translations/en.json". error on opening the app)
How to Reproduce
- Install and launch the Appflowy desktop client
- When an instance is open, uninstall it from settings
- Notice the Uninstall Complete prompt (attached screenshot)
- Now, launch the AppFlowy again from the start menu (one icon stays back even after uninstall, see : https://github.com/AppFlowy-IO/AppFlowy/issues/4813)
- Notice the Grey screen with
Expected Behavior
the app should ask the user to close the running instance of AppFlowy and then proceed to uninstallation
Operating System
Windows 10
AppFlowy Version(s)
0.5.0
Screenshots
Uninstallation Complete Prompt:
Re-Opening after uninstall:
Additional Context
Due to this incomplete uninstallation, the app sometimes throws a few system error popups too, for which app needs to be re-installed
@bitwisebro I'm confused as to why users might uninstall the application while it's running.
Good question @LucasXu0 ! Users may attempt to uninstall the application while it's running if they encounter unresponsiveness or freezing. However, this bug could make the user experience even more frustrating.
@bitwisebro I think users will close the app instead of uninstalling it when it freezes.
@LucasXu0 , there is a likelihood that a user chooses to uninstall when the app is freezing. We should take care of this case.