mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
parent
77c22b37c8
commit
40fa86c8ca
@ -96,6 +96,16 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
|
|||||||
bool varsubEnabled = Config()->getConfigBool("asm.sub.var");
|
bool varsubEnabled = Config()->getConfigBool("asm.sub.var");
|
||||||
ui->varsubOnlyCheckBox->setEnabled(varsubEnabled);
|
ui->varsubOnlyCheckBox->setEnabled(varsubEnabled);
|
||||||
|
|
||||||
|
ui->asmComboBox->blockSignals(true);
|
||||||
|
if (Config()->getConfigBool("asm.esil")) {
|
||||||
|
ui->asmComboBox->setCurrentIndex(1);
|
||||||
|
} else if (Config()->getConfigBool("asm.pseudo")) {
|
||||||
|
ui->asmComboBox->setCurrentIndex(2);
|
||||||
|
} else {
|
||||||
|
ui->asmComboBox->setCurrentIndex(0);
|
||||||
|
}
|
||||||
|
ui->asmComboBox->blockSignals(false);
|
||||||
|
|
||||||
QString currentSyntax = Config()->getConfigString("asm.syntax");
|
QString currentSyntax = Config()->getConfigString("asm.syntax");
|
||||||
for (int i = 0; i < ui->syntaxComboBox->count(); i++) {
|
for (int i = 0; i < ui->syntaxComboBox->count(); i++) {
|
||||||
if (ui->syntaxComboBox->itemData(i) == currentSyntax) {
|
if (ui->syntaxComboBox->itemData(i) == currentSyntax) {
|
||||||
|
Loading…
Reference in New Issue
Block a user