Skip to content

Commit

Permalink
GLideNUI: show native path seperator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 authored and gonetz committed Aug 4, 2024
1 parent b7f30ed commit 24f7f47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/GLideNUI/ConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ void ConfigDialog::_init(bool reInit, bool blockCustomSettings)
ui->hiresTexFileStorageCheckBox->setChecked(config.textureFilter.txHiresTextureFileStorage != 0);
ui->noTexFileStorageCheckBox->setChecked(config.textureFilter.txNoTextureFileStorage != 0);

ui->texPackPathLineEdit->setText(QString::fromWCharArray(config.textureFilter.txPath));
ui->texCachePathLineEdit->setText(QString::fromWCharArray(config.textureFilter.txCachePath));
ui->texDumpPathLineEdit->setText(QString::fromWCharArray(config.textureFilter.txDumpPath));
ui->texPackPathLineEdit->setText(QDir::toNativeSeparators(QString::fromWCharArray(config.textureFilter.txPath)));
ui->texCachePathLineEdit->setText(QDir::toNativeSeparators(QString::fromWCharArray(config.textureFilter.txCachePath)));
ui->texDumpPathLineEdit->setText(QDir::toNativeSeparators(QString::fromWCharArray(config.textureFilter.txDumpPath)));

ui->textureFilterLimitSpinBox->setValue(config.textureFilter.txHiresVramLimit);

Expand Down Expand Up @@ -886,7 +886,7 @@ void ConfigDialog::on_texPackPathButton_clicked()
ui->texPackPathLineEdit->text(),
options);
if (!directory.isEmpty())
ui->texPackPathLineEdit->setText(directory);
ui->texPackPathLineEdit->setText(QDir::toNativeSeparators(directory));
}

void ConfigDialog::on_texCachePathButton_clicked()
Expand All @@ -897,7 +897,7 @@ void ConfigDialog::on_texCachePathButton_clicked()
ui->texCachePathLineEdit->text(),
options);
if (!directory.isEmpty())
ui->texCachePathLineEdit->setText(directory);
ui->texCachePathLineEdit->setText(QDir::toNativeSeparators(directory));
}

void ConfigDialog::on_texDumpPathButton_clicked()
Expand All @@ -908,7 +908,7 @@ void ConfigDialog::on_texDumpPathButton_clicked()
ui->texDumpPathLineEdit->text(),
options);
if (!directory.isEmpty())
ui->texDumpPathLineEdit->setText(directory);
ui->texDumpPathLineEdit->setText(QDir::toNativeSeparators(directory));
}

void ConfigDialog::on_noTexFileStorageCheckBox_toggled(bool checked)
Expand Down

0 comments on commit 24f7f47

Please sign in to comment.