[skipci]
This commit is contained in:
DavidXanatos 2024-04-13 19:12:40 +02:00
parent 68d4a1f762
commit 55c094dda9
2 changed files with 9 additions and 6 deletions

View File

@ -14,6 +14,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- fixed When I change the BlockDNS and BlockPorts options, the Apply button is not activated [#3807](https://github.com/sandboxie-plus/Sandboxie/issues/3807)
- fixed troubleshooting wizard broke with new qt [#3810](https://github.com/sandboxie-plus/Sandboxie/discussions/3810)
- fixed Settings dialog now showing the right ram disk letter
## [1.13.5 / 5.68.5] - 2024-04-10

View File

@ -277,6 +277,12 @@ CSettingsWindow::CSettingsWindow(QWidget* parent)
m_HoldChange = false;
DWORD logical_drives = GetLogicalDrives();
for (CHAR search = 'D'; search <= 'Z'; search++) {
if ((logical_drives & (1 << (search - 'A'))) == 0)
ui.cmbRamLetter->addItem(QString("%1:\\").arg(QChar(search)));
}
CPathEdit* pEditor = new CPathEdit();
ui.txtEditor->parentWidget()->layout()->replaceWidget(ui.txtEditor, pEditor);
ui.txtEditor->deleteLater();
@ -399,11 +405,6 @@ CSettingsWindow::CSettingsWindow(QWidget* parent)
connect(ui.txtRamLimit, SIGNAL(textChanged(const QString&)), this, SLOT(OnRamDiskChange()));
connect(ui.chkRamLetter, SIGNAL(stateChanged(int)), this, SLOT(OnRamDiskChange()));
connect(ui.cmbRamLetter, SIGNAL(currentIndexChanged(int)), this, SLOT(OnGeneralChanged()));
DWORD logical_drives = GetLogicalDrives();
for (CHAR search = 'D'; search <= 'Z'; search++) {
if ((logical_drives & (1 << (search - 'A'))) == 0)
ui.cmbRamLetter->addItem(QString("%1:\\").arg(QChar(search)));
}
//
// Advanced Config
@ -988,7 +989,7 @@ void CSettingsWindow::LoadSettings()
if(uDiskLimit > 0) ui.txtRamLimit->setText(QString::number(uDiskLimit));
QString RamLetter = theAPI->GetGlobalSettings()->GetText("RamDiskLetter");
ui.chkRamLetter->setChecked(!RamLetter.isEmpty());
ui.cmbRamLetter->setCurrentText(RamLetter);
ui.cmbRamLetter->setCurrentIndex(ui.cmbRamLetter->findText(RamLetter));
m_HoldChange = true;
OnRamDiskChange();
m_HoldChange = false;