1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Fixed Download error

This commit is contained in:
Dummerle 2021-01-18 09:18:55 +01:00
parent a73a2155af
commit e4500afe18
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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"))