Currently, getRootFolderPath() is an asynchronous function as it prompts the user to input a root folder if non exists. However, the async modifier is bubbling up in a way that's causing/can cause implementation headaches.
Instead, there should be a synchronous getRootFolderPath() and separate asynchronous action for the check to be called 1) on launch, and 2) on change of the root folder setting.
Currently,
getRootFolderPath()is an asynchronous function as it prompts the user to input a root folder if non exists. However, theasyncmodifier is bubbling up in a way that's causing/can cause implementation headaches.Instead, there should be a synchronous
getRootFolderPath()and separate asynchronous action for the check to be called 1) on launch, and 2) on change of the root folder setting.