Skip to content

Commit

Permalink
fixed translation update for download screens when locale is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrd committed Oct 24, 2024
1 parent b0bd46d commit 9156eb6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pylint/src
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ max-bool-expr=5
max-branches=25

# Maximum number of locals for function / method body.
max-locals=20
max-locals=24

# Maximum number of parents for a class (see R0901).
max-parents=10
Expand Down
37 changes: 37 additions & 0 deletions src/app/config_krux_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ def on_config_change(self, config, section, key, value):
warn_stable = self.screen_manager.get_screen(
"WarningAlreadyDownloadedScreen"
)
down_zip = self.screen_manager.get_screen("DownloadStableZipScreen")
down_sha_zip = self.screen_manager.get_screen(
"DownloadStableZipSha256Screen"
)
down_sig_zip = self.screen_manager.get_screen("DownloadStableZipSigScreen")
down_pem = self.screen_manager.get_screen("DownloadSelfcustodyPemScreen")
down_beta = self.screen_manager.get_screen("DownloadBetaScreen")
warn_beta = self.screen_manager.get_screen("WarningBetaScreen")
verify = self.screen_manager.get_screen("VerifyStableZipScreen")
unzip = self.screen_manager.get_screen("UnzipStableScreen")
Expand Down Expand Up @@ -293,6 +300,36 @@ def on_config_change(self, config, section, key, value):
key="locale",
value=value,
),
partial(
down_zip.update,
name="ConfigKruxInstaller",
key="locale",
value=value,
),
partial(
down_sha_zip.update,
name="ConfigKruxInstaller",
key="locale",
value=value,
),
partial(
down_sig_zip.update,
name="ConfigKruxInstaller",
key="locale",
value=value,
),
partial(
down_pem.update,
name="ConfigKruxInstaller",
key="locale",
value=value,
),
partial(
down_beta.update,
name="ConfigKruxInstaller",
key="locale",
value=value,
),
partial(
verify.update, name="ConfigKruxInstaller", key="locale", value=value
),
Expand Down

0 comments on commit 9156eb6

Please sign in to comment.