mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
If available, set r2ghidra the default decompiler (#2007)
* If available, set r2ghidra the default decompiler * Honor user preferences
This commit is contained in:
parent
1c39aa6d41
commit
c7d66cec06
@ -56,6 +56,11 @@ DecompilerWidget::DecompilerWidget(MainWindow *main, QAction *action) :
|
|||||||
|
|
||||||
auto decompilers = Core()->getDecompilers();
|
auto decompilers = Core()->getDecompilers();
|
||||||
auto selectedDecompilerId = Config()->getSelectedDecompiler();
|
auto selectedDecompilerId = Config()->getSelectedDecompiler();
|
||||||
|
if (selectedDecompilerId.isEmpty()) {
|
||||||
|
// If no decompiler was previously chosen. set r2ghidra as default decompiler
|
||||||
|
selectedDecompilerId = "r2ghidra";
|
||||||
|
}
|
||||||
|
|
||||||
for (auto dec : decompilers) {
|
for (auto dec : decompilers) {
|
||||||
ui->decompilerComboBox->addItem(dec->getName(), dec->getId());
|
ui->decompilerComboBox->addItem(dec->getName(), dec->getId());
|
||||||
if (dec->getId() == selectedDecompilerId) {
|
if (dec->getId() == selectedDecompilerId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user