configure_filesystem: Normalize member function casing

All other dialog types we have use CamelCase naming.
This commit is contained in:
Lioncash 2022-02-01 21:59:29 -05:00
parent 50e9ba34b4
commit b9f06bd599
3 changed files with 8 additions and 8 deletions

View File

@ -109,7 +109,7 @@ void ConfigureDialog::ApplyConfiguration() {
ui_tab->ApplyConfiguration(); ui_tab->ApplyConfiguration();
system_tab->ApplyConfiguration(); system_tab->ApplyConfiguration();
profile_tab->ApplyConfiguration(); profile_tab->ApplyConfiguration();
filesystem_tab->applyConfiguration(); filesystem_tab->ApplyConfiguration();
input_tab->ApplyConfiguration(); input_tab->ApplyConfiguration();
hotkeys_tab->ApplyConfiguration(registry); hotkeys_tab->ApplyConfiguration(registry);
cpu_tab->ApplyConfiguration(); cpu_tab->ApplyConfiguration();

View File

@ -14,7 +14,7 @@
ConfigureFilesystem::ConfigureFilesystem(QWidget* parent) ConfigureFilesystem::ConfigureFilesystem(QWidget* parent)
: QWidget(parent), ui(std::make_unique<Ui::ConfigureFilesystem>()) { : QWidget(parent), ui(std::make_unique<Ui::ConfigureFilesystem>()) {
ui->setupUi(this); ui->setupUi(this);
this->setConfiguration(); SetConfiguration();
connect(ui->nand_directory_button, &QToolButton::pressed, this, connect(ui->nand_directory_button, &QToolButton::pressed, this,
[this] { SetDirectory(DirectoryTarget::NAND, ui->nand_directory_edit); }); [this] { SetDirectory(DirectoryTarget::NAND, ui->nand_directory_edit); });
@ -38,7 +38,7 @@ ConfigureFilesystem::ConfigureFilesystem(QWidget* parent)
ConfigureFilesystem::~ConfigureFilesystem() = default; ConfigureFilesystem::~ConfigureFilesystem() = default;
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)));
ui->sdmc_directory_edit->setText( ui->sdmc_directory_edit->setText(
@ -60,7 +60,7 @@ void ConfigureFilesystem::setConfiguration() {
UpdateEnabledControls(); UpdateEnabledControls();
} }
void ConfigureFilesystem::applyConfiguration() { void ConfigureFilesystem::ApplyConfiguration() {
Common::FS::SetYuzuPath(Common::FS::YuzuPath::NANDDir, Common::FS::SetYuzuPath(Common::FS::YuzuPath::NANDDir,
ui->nand_directory_edit->text().toStdString()); ui->nand_directory_edit->text().toStdString());
Common::FS::SetYuzuPath(Common::FS::YuzuPath::SDMCDir, Common::FS::SetYuzuPath(Common::FS::YuzuPath::SDMCDir,
@ -143,6 +143,6 @@ void ConfigureFilesystem::UpdateEnabledControls() {
!ui->gamecard_current_game->isChecked()); !ui->gamecard_current_game->isChecked());
} }
void ConfigureFilesystem::retranslateUi() { void ConfigureFilesystem::RetranslateUI() {
ui->retranslateUi(this); ui->retranslateUi(this);
} }

View File

@ -20,11 +20,11 @@ public:
explicit ConfigureFilesystem(QWidget* parent = nullptr); explicit ConfigureFilesystem(QWidget* parent = nullptr);
~ConfigureFilesystem() override; ~ConfigureFilesystem() override;
void applyConfiguration(); void ApplyConfiguration();
void retranslateUi();
private: private:
void setConfiguration(); void RetranslateUI();
void SetConfiguration();
enum class DirectoryTarget { enum class DirectoryTarget {
NAND, NAND,