Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,21 @@ public SyncResult syncMinimalEventSet(SyncManager.ProgressFeedback feedback) {
return syncMinimalEventSet(null, 0L, feedback);
}

public SyncResult uploadAsync(ProgressFeedback feedback) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's nothing really async about this method, maybe

Suggested change
public SyncResult uploadAsync(ProgressFeedback feedback) {
public SyncResult uploadOnly(ProgressFeedback feedback) {

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i change it

if (!configStore.isConfigured()) {
return new SyncResult(false, false, null);
}
canceled.setCanceled(false);
try {
upload(feedback);
} catch (SyncException e) {
configStore.setLastFailedSync(System.currentTimeMillis());
configStore.setLastFailedSyncMsg(e.getMessage());
return new SyncResult(true, false, e);
}
return new SyncResult(true, false, null);
}

private void checkEventSelection(Long listId) throws EventSwitchRequested {
try {
if (configStore.getSynchronizedEvents().size() != 1) {
Expand Down
Loading