From 6c6473762fb1b086f20f9c55738789f4b2db275b Mon Sep 17 00:00:00 2001 From: Samson Melamed Date: Mon, 8 Jun 2009 14:07:11 -0400 Subject: [PATCH 1/2] perform bulk (media) sync after full sync with server --- ankiqt/ui/sync.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 ankiqt/ui/sync.py diff --git a/ankiqt/ui/sync.py b/ankiqt/ui/sync.py old mode 100644 new mode 100755 index 41c15e040..4bde835f7 --- a/ankiqt/ui/sync.py +++ b/ankiqt/ui/sync.py @@ -126,6 +126,8 @@ class Sync(QThread): else: self.setStatus(_("Downloading..."), 0) client.fullSyncFromServer(ret[1], ret[2]) + if client.mediaSupported(): + self.doBulkDownload(proxy.deckName) self.setStatus(_("Sync complete."), 0) else: # diff From c5ff8111a9825ea0fad83a83aebec4acdd6ad4e1 Mon Sep 17 00:00:00 2001 From: Samson Melamed Date: Mon, 8 Jun 2009 14:21:22 -0400 Subject: [PATCH 2/2] fix height of 'more' dropdown in deck browser on win32 when using alt theme --- ankiqt/ui/main.py | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 ankiqt/ui/main.py diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py old mode 100644 new mode 100755 index fefd737a2..eff967fcd --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1135,6 +1135,9 @@ your deck.""")) moreButton = QComboBox() if sys.platform.startswith("darwin"): moreButton.setFixedWidth(80) + if sys.platform.startswith("win32") and \ + self.config['alternativeTheme']: + moreButton.setFixedHeight(24) moreButton.addItems(QStringList([ _("More"), _("Forget"),