|
|
|
@ -393,15 +393,19 @@ public class LocalWidgetRepoPane extends BasicPane {
|
|
|
|
|
public void onFetchedAfter(boolean success, Map<String, OnlineShareWidget> remoteLatestWidgets) { |
|
|
|
|
if (success) { |
|
|
|
|
List<SharableWidgetProvider> updatableWidgetProviders = LocalWidgetRepoUpdater.getInstance().getUpdatableWidgetProviders(); |
|
|
|
|
updateTipPane.setVisible(updatableWidgetProviders.size() > 0); |
|
|
|
|
if (updatableWidgetProviders.size() > 0) { |
|
|
|
|
refreshAllGroupPane(GroupPane.GroupCreateStrategy.DEFAULT); |
|
|
|
|
} |
|
|
|
|
onRemoteWidgetUpdatesChanged(updatableWidgetProviders.size() > 0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void onRemoteWidgetUpdatesChanged(boolean hasUpdates) { |
|
|
|
|
updateTipPane.setVisible(hasUpdates); |
|
|
|
|
if (hasUpdates) { |
|
|
|
|
refreshAllGroupPane(GroupPane.GroupCreateStrategy.DEFAULT); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void doQuitUpdateComponents() { |
|
|
|
|
LocalWidgetRepoUpdater updater = LocalWidgetRepoUpdater.getInstance(); |
|
|
|
|
updater.clearUpdate(); |
|
|
|
|