summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKyle K <190571+Docteh@users.noreply.github.com>2022-05-02 05:36:10 +0200
committerKyle K <190571+Docteh@users.noreply.github.com>2022-05-02 06:39:39 +0200
commit4be00def5c0e6778d51e49e83a6e8111e18afb10 (patch)
tree9fa9e8080c55f9a7cec0eeb3836f2318a1224772 /src
parentMerge pull request #8283 from Tachi107/appstream (diff)
downloadyuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar.gz
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar.bz2
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar.lz
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar.xz
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.tar.zst
yuzu-4be00def5c0e6778d51e49e83a6e8111e18afb10.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/configure_network.cpp10
-rw-r--r--src/yuzu/configuration/configure_network.h3
2 files changed, 11 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_network.cpp b/src/yuzu/configuration/configure_network.cpp
index f87d3d53a..8ed08fa6a 100644
--- a/src/yuzu/configuration/configure_network.cpp
+++ b/src/yuzu/configuration/configure_network.cpp
@@ -26,7 +26,15 @@ void ConfigureNetwork::ApplyConfiguration() {
Settings::values.network_interface = ui->network_interface->currentText().toStdString();
}
-void ConfigureNetwork::RetranslateUi() {
+void ConfigureNetwork::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ RetranslateUI();
+ }
+
+ QWidget::changeEvent(event);
+}
+
+void ConfigureNetwork::RetranslateUI() {
ui->retranslateUi(this);
}
diff --git a/src/yuzu/configuration/configure_network.h b/src/yuzu/configuration/configure_network.h
index e8245cfdc..f666edbd1 100644
--- a/src/yuzu/configuration/configure_network.h
+++ b/src/yuzu/configuration/configure_network.h
@@ -18,9 +18,10 @@ public:
~ConfigureNetwork() override;
void ApplyConfiguration();
- void RetranslateUi();
private:
+ void changeEvent(QEvent*) override;
+ void RetranslateUI();
void SetConfiguration();
std::unique_ptr<Ui::ConfigureNetwork> ui;