MathNodes / meile-gui

Meile dVPN GUI for Linux, OS X, and Windows - Powered by the Sentinel Network
https://meile.app
GNU General Public License v3.0
35 stars 6 forks source link

[ENHANCEMENT] Background threading when fetching subscriptions #105

Open MathNodes opened 1 month ago

MathNodes commented 1 month ago

Currently, the routine to fetch a wallet's active subscriptions uses the dependency ThreadingWithResult. It is the only call to this dependency. The reason for this dep is because the Subscription routine in HandleWalletFunctions returns the dictionary list of subscriptions and accepting a return value with threading is complicated and this dep satisified it.

However, this currently threading exists on the mainthread and so locks the app. A better alternative would be to create a public variable in HandleWalletFunctions of SubResult and change the screens.py call to use this variable in the main instance. Little work needs to be done to achieve this but it is not complicated.

Query me for me precise instructions.