Clear threadpool queue when tab is changed

Clear the threadpool queue when the user switches between tabs, so that
the resolution tags, which are visible get updated earlier. Before, the
tags on tab the user is coming from were updated first and after that
the tags of the currently visible tab.
This commit is contained in:
0xboobface 2018-10-03 15:47:04 +02:00
parent e61cff48f2
commit c91c9641f0
1 changed files with 1 additions and 0 deletions

View File

@ -565,6 +565,7 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
@Override
public void selected() {
queue.clear();
if(updateService != null) {
State s = updateService.getState();
if (s != State.SCHEDULED && s != State.RUNNING) {