Fixed Download error
This commit is contained in:
parent
a73a2155af
commit
e4500afe18
|
@ -4,7 +4,7 @@
|
|||
|
||||
### Add translations
|
||||
|
||||
1. Execute **pylupdate5 $(find -name "*.py") -ts Rare/languages/{your lang (two letters)}.ts** in project directrory
|
||||
1. Execute **pylupdate5 $(find -name "\*.py") -ts Rare/languages/{your lang (two letters)}.ts** in project directrory
|
||||
2. Modify the .ts file manually or in Qt Linguist
|
||||
3. Compile the file with **lrelease Rare/languages/{lang}.ts**
|
||||
4. Create a Pull request
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
import os
|
||||
|
||||
from PyQt5.QtWidgets import QLineEdit, QPushButton, QLabel, QVBoxLayout, QDialog, QHBoxLayout
|
||||
from legendary.models.game import Game
|
||||
|
||||
|
||||
class InstallDialog(QDialog):
|
||||
def __init__(self, game):
|
||||
def __init__(self, game: Game):
|
||||
super(InstallDialog, self).__init__()
|
||||
self.setWindowTitle(self.tr("Install Game"))
|
||||
self.layout = QVBoxLayout()
|
||||
|
@ -14,7 +15,7 @@ class InstallDialog(QDialog):
|
|||
# self.layout.addWidget(self.options)
|
||||
|
||||
self.layout.addStretch(1)
|
||||
self.yes_button = QPushButton(self.tr("Install game ") + game.title)
|
||||
self.yes_button = QPushButton(self.tr("Install game ") + game.app_title)
|
||||
self.yes_button.clicked.connect(self.close)
|
||||
self.cancel_button = QPushButton(self.tr("cancel"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue