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