yellowbluesky / PixivforMuzei3

Best Pixiv plugin for Muzei 3
GNU General Public License v3.0
174 stars 15 forks source link

Is it possible not to use WorkManager? #165

Closed mslxl closed 3 years ago

mslxl commented 3 years ago

I think here should not use WorkManager. WorkManager would not be run immediately sometimes but refresh action should be an immediate action. By using WorkManager, load work wound not start after the refresh button was clicked, sometimes it needs to wait a long time to start the work. It will cause trouble when using and debugging the app. Is it possible not to use WorkManager?

yellowbluesky commented 3 years ago

Pressing the button to "clear the cache and immediately download new artwork" does clear the WorkManager queue

https://github.com/yellowbluesky/PixivforMuzei3/blob/9fddaf67abb8d1a0766ebaa2105fe396b61e121c/app/src/main/java/com/antony/muzei/pixiv/settings/fragments/MainPreferenceFragment.kt#L155