mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 14:45:02 +01:00
Fix #975169 (Installer Bug, Click "Done" but "Finish" is present)
This commit is contained in:
parent
efc7bb05e7
commit
aa2af4e951
1 changed files with 2 additions and 1 deletions
|
|
@ -887,8 +887,8 @@ def retranslate(self):
|
|||
for pid in self.pageIds():
|
||||
page = self.page(pid)
|
||||
page.retranslateUi(page)
|
||||
self.set_finish_text()
|
||||
self.set_button_texts()
|
||||
self.set_finish_text()
|
||||
|
||||
def accept(self):
|
||||
pages = map(self.page, self.visitedPages())
|
||||
|
|
@ -904,6 +904,7 @@ def completed(self, newloc):
|
|||
|
||||
def set_finish_text(self, *args):
|
||||
bt = unicode(self.buttonText(self.FinishButton)).replace('&', '')
|
||||
print (1111111, bt)
|
||||
t = unicode(self.finish_page.finish_text.text())
|
||||
if '%s' in t:
|
||||
self.finish_page.finish_text.setText(t%bt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue