diff --git a/ankiqt/config.py b/ankiqt/config.py
index a314cb8fe..80a8b4395 100644
--- a/ankiqt/config.py
+++ b/ankiqt/config.py
@@ -54,7 +54,7 @@ class Config(dict):
'saveAfterAnswer': True,
'saveAfterAnswerNum': 10,
'saveAfterAdding': True,
- 'saveAfterAddingNum': 3,
+ 'saveAfterAddingNum': 1,
'saveOnClose': True,
'mainWindowGeom': None,
'suppressUpdate': False,
diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py
index 69e61c57c..1186e6f4b 100644
--- a/ankiqt/ui/main.py
+++ b/ankiqt/ui/main.py
@@ -849,11 +849,25 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
def onOpenSamples(self):
self.onOpen(samples=True)
+ def onUnsavedTimer(self):
+ QToolTip.showText(
+ self.mainWin.statusbar.mapToGlobal(QPoint(0, -100)),
+ _("""\
+
Unsaved Deck
+Careful. You're editing an unsaved Deck.
+Choose File -> Save to start autosaving
+your deck."""))
+
def save(self, required=False):
if not self.deck.path:
if required:
# backed in memory, make sure it's saved
return self.onSaveAs()
+ else:
+ t = QTimer(self)
+ t.setSingleShot(True)
+ t.start(200)
+ self.connect(t, SIGNAL("timeout()"), self.onUnsavedTimer)
return
if not self.deck.modifiedSinceSave():
return True
diff --git a/ankiqt/ui/status.py b/ankiqt/ui/status.py
index eab69f2ce..c7112b6d8 100644
--- a/ankiqt/ui/status.py
+++ b/ankiqt/ui/status.py
@@ -71,7 +71,7 @@ class StatusView(object):
progressBarSize = (50, 8)
# small spacer
self.initialSpace = QWidget()
- self.addWidget(self.initialSpace, 1)
+ self.addWidget(self.initialSpace, 0)
# remaining & eta
self.remText = QLabel()
self.addWidget(self.remText, 0)
@@ -99,6 +99,7 @@ class StatusView(object):
vbox.addWidget(self.retentionBar, 0)
self.combinedBar = QWidget()
self.combinedBar.setLayout(vbox)
+ self.combinedBar.setFixedWidth(50)
self.addWidget(self.combinedBar, 0)
# timer
self.addWidget(self.vertSep(), 0)