mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 08:44:58 +00:00
configure_filesystem: Add missing changeEvent() override
This allows the dialog to be retranslated during runtime if the language is changed.
This commit is contained in:
parent
b9f06bd599
commit
40d31b8b8a
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,14 @@ ConfigureFilesystem::ConfigureFilesystem(QWidget* parent)
|
||||||
|
|
||||||
ConfigureFilesystem::~ConfigureFilesystem() = default;
|
ConfigureFilesystem::~ConfigureFilesystem() = default;
|
||||||
|
|
||||||
|
void ConfigureFilesystem::changeEvent(QEvent* event) {
|
||||||
|
if (event->type() == QEvent::LanguageChange) {
|
||||||
|
RetranslateUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget::changeEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
void ConfigureFilesystem::SetConfiguration() {
|
void ConfigureFilesystem::SetConfiguration() {
|
||||||
ui->nand_directory_edit->setText(
|
ui->nand_directory_edit->setText(
|
||||||
QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::NANDDir)));
|
QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::NANDDir)));
|
||||||
|
|
|
@ -23,6 +23,8 @@ public:
|
||||||
void ApplyConfiguration();
|
void ApplyConfiguration();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void changeEvent(QEvent* event) override;
|
||||||
|
|
||||||
void RetranslateUI();
|
void RetranslateUI();
|
||||||
void SetConfiguration();
|
void SetConfiguration();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue