Commit graph

59 commits

Author SHA1 Message Date
Damien Elmes
e15587c1cc don't need to display error as log line anymore 2010-12-08 17:33:57 +09:00
Damien Elmes
f8d13106fb more general solution to sync failures 2010-12-08 16:36:57 +09:00
Damien Elmes
90fed6bd45 don't generate multiple finished messages when multisync fails 2010-12-08 14:42:26 +09:00
Damien Elmes
772f6d7776 report errors in multi sync, make sure to terminate early 2010-12-07 17:06:42 +09:00
Damien Elmes
ccc91b364e improve sync error messages 2010-12-07 16:48:05 +09:00
Damien Elmes
060fbb788e tell server to save after response received & applied 2010-12-07 10:40:23 +09:00
Damien Elmes
29978fffb8 treat an empty response like any other sync error 2010-12-07 10:39:16 +09:00
Damien Elmes
01c6ca6776 no need to close the deck twice 2010-12-05 18:11:51 +09:00
Damien Elmes
dd336fc7a7 since we detect when deck is moved, it should be safe to allow upload in multimode 2010-12-04 19:05:11 +09:00
Damien Elmes
d897ff7a0b typo of 'download' 2010-11-27 07:39:24 +09:00
Damien Elmes
a46c9a8b26 sync updates (syncName, etc)
- remove text box from deck properties
- exiting deck properties after enabling syncing forces a sync
- instead of the arduous file>sync, enable checkbox, close dialog, file>sync
  again process users had to go through before, they can just file>sync now
  and the deck immediately syncs
- when downloading a deck, instead of downloading into a new name, prompt if
  the user wants to overwrite the deck, and cancel if they don't
- simplify deckChooser since we only have to deal with downloading now
- only display a clobber warning if the deck already existed on the server
- disable syncing if user declines to clobber the deck
- skip expensive summary generation if downloading or a conflict
2010-11-23 23:28:45 +09:00
Damien Elmes
8032c4a66b don't check sources on sync; let ankionline handle it instead 2010-10-19 19:59:47 +09:00
Damien Elmes
3a9bff8e11 add small sleep after multi sync 2010-09-16 14:38:24 +09:00
Damien Elmes
e1ecae0ecb facts missing warning 2010-09-12 12:21:18 +09:00
Damien Elmes
b36b670043 older pysqlite can't auto-convert unicode to utf-8 2010-08-24 13:09:59 +09:00
Damien Elmes
5fc33ab143 don't report conflicts when decks have same mod time 2010-08-19 12:02:02 +09:00
Damien Elmes
1eac9b52a5 fail gracefully if db is locked on sync all 2010-07-30 16:41:20 +09:00
Damien Elmes
1204f977e5 do clock skew check on initial connect only 2010-07-30 16:37:37 +09:00
Damien Elmes
7f41973972 rework conflict algorithm to detect more conflict cases 2010-07-27 23:19:44 +09:00
Damien Elmes
d9af6288e1 do clobber detection at sync time, fix sync bugs
- don't get stuck in event loop if user cancels deck selection
- prompt for any full sync upload with no last sync time, so this also warns
  about syncs after a DB check too
- fixes erroneous warning with file>download>personal deck
2010-07-27 15:47:15 +09:00
Damien Elmes
fbe7e12160 if an error happens during connect, terminate multi sync 2010-07-26 19:39:56 +09:00
Damien Elmes
e3f50540d5 detect sync conflicts and offer choice of direction 2010-07-21 18:35:55 +09:00
Damien Elmes
f93910128f multi-deck sync and related improvements
- deck open & browser refresh done after splash screen hidden now
- splash reduced to 3 steps
- new options sync on program load/close
- per-deck auto sync disabled on upgrade
- plugins are now always loaded before a deck has been opened
- don't prompt for sync params in auto sync, for both all and single deck
- refresh deck browser after multi sync
- wait on sync thread until syncFinished called, could fix crashes
- after a full sync, ensure interface is still disabled
- sync menu option now available in deck browser
- new option to tell a progress window it should appear immediately
2010-07-21 13:16:07 +09:00
Damien Elmes
634db40e56 don't try to localize traceback 2010-06-28 11:31:54 +09:00
Damien Elmes
39c7410d94 reopen deck after sync in case of subscription 2009-07-10 01:40:23 +09:00
Damien Elmes
8afdec9850 take a backup prior to sync 2009-06-30 16:06:34 +09:00
Damien Elmes
938abea109 add tooltip, merge->overwrite 2009-06-23 05:42:50 +09:00
Damien Elmes
c6def7d5e9 remove bulk media support 2009-06-19 11:50:45 +09:00
Damien Elmes
2f8508d13a if user/pass is wrong, open prefs 2009-06-15 09:26:36 +09:00
Samson Melamed
6c6473762f perform bulk (media) sync after full sync with server 2009-06-08 14:07:11 -04:00
Damien Elmes
65a718fdbe implement full sync downloading 2009-06-02 03:23:06 +09:00
Damien Elmes
619d2bcbaf implement full sync uploading 2009-05-31 01:24:42 +09:00
Damien Elmes
f54525e9a7 recover gracefully if the deck can't be opened in the sync thread 2009-05-30 10:27:54 +09:00
Damien Elmes
52139646dc on an unknown error, print full traceback. ensure .data exists 2009-05-08 13:54:09 +09:00
Damien Elmes
2ab8b7a574 generalize tooltips, make sync no contact msg a tooltip 2009-04-23 02:30:08 +09:00
Damien Elmes
0a1658de24 improve sync error message 2009-04-23 02:08:12 +09:00
Damien Elmes
6055f55f6b display the proper sync error 2009-04-11 01:48:08 +09:00
Damien Elmes
35dd5c9c51 relax sync check from 1 minute to 5 minutes 2009-04-10 22:34:47 +09:00
Damien Elmes
4c9e57b4b9 add sync error msg 2009-03-21 03:50:13 +09:00
Damien Elmes
1e9c3ff253 better sync failure message, don't prompt for save if open online fails 2009-02-26 00:49:41 +09:00
Damien Elmes
5e74b8d275 fix order of operations in sync 2009-01-10 18:13:15 +09:00
Damien Elmes
73c043ed7e Merge branch 'master' of git://github.com/scout/ankiqt 2009-01-10 16:55:34 +09:00
Samson Melamed
3832bfddda fixes media sync progress bar not reaching 100% 2009-01-10 00:03:35 -05:00
Damien Elmes
18cc93ecf1 remove ? from all qdialogs 2009-01-09 13:57:01 +09:00
Damien Elmes
0a015de0fa if no changes, display no changes only briefly 2009-01-09 12:23:16 +09:00
Damien Elmes
e48cfaae82 add tooltips to buttons, improve open online dialog 2009-01-04 11:18:57 +09:00
Damien Elmes
ed19526037 fix reference to lastSync 2008-12-25 22:11:02 +09:00
Damien Elmes
eacff663ef don't say 'merge' with open online, it's confusing 2008-12-20 18:52:43 +09:00
Damien Elmes
dbb14988ea catch bulk upload failures 2008-12-20 15:09:04 +09:00
Damien Elmes
d239049c18 update more ellipses 2008-12-04 00:33:59 +09:00