diff --git a/calibre-plugin/common_utils.py b/calibre-plugin/common_utils.py index 71a74aac..ba7e3766 100644 --- a/calibre-plugin/common_utils.py +++ b/calibre-plugin/common_utils.py @@ -239,8 +239,8 @@ class SizePersistedDialog(QDialog): self.restoreGeometry(self.geom) def dialog_closing(self, result): - geom = bytearray(self.saveGeometry()) - gprefs[self.unique_pref_name] = geom + self.geom = bytearray(self.saveGeometry()) + gprefs[self.unique_pref_name] = self.geom class ReadOnlyTableWidgetItem(QTableWidgetItem): diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index c0bf8166..cb3003a6 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -258,8 +258,8 @@ class AddNewDialog(SizePersistedDialog): # invoke the def ok_clicked(self): + self.dialog_closing(None) # save persistent size. self.hide() - print("ok_clicked called") self.go_signal.emit( self.get_ffdl_options(), self.get_urlstext(), self.merge,