mirror of
https://github.com/skylot/jadx.git
synced 2024-11-27 14:40:54 +00:00
fix(gui): "Always Select Opened File/Class" was not syncing upon activation (PR #1261)
This commit is contained in:
parent
0423f33e93
commit
940108661c
@ -249,8 +249,8 @@ public class JadxSettings extends JadxCLIArgs {
|
||||
return alwaysSelectOpened;
|
||||
}
|
||||
|
||||
public void setAlwaysSelectOpened(boolean showHeapUsageBar) {
|
||||
this.alwaysSelectOpened = showHeapUsageBar;
|
||||
public void setAlwaysSelectOpened(boolean alwaysSelectOpened) {
|
||||
this.alwaysSelectOpened = alwaysSelectOpened;
|
||||
partialSync(settings -> settings.alwaysSelectOpened = alwaysSelectOpened);
|
||||
}
|
||||
|
||||
|
@ -868,6 +868,9 @@ public class MainWindow extends JFrame {
|
||||
alwaysSelectOpened.setState(settings.isAlwaysSelectOpened());
|
||||
alwaysSelectOpened.addActionListener(event -> {
|
||||
settings.setAlwaysSelectOpened(!settings.isAlwaysSelectOpened());
|
||||
if (settings.isAlwaysSelectOpened()) {
|
||||
this.syncWithEditor();
|
||||
}
|
||||
});
|
||||
|
||||
Action syncAction = new AbstractAction(NLS.str("menu.sync"), ICON_SYNC) {
|
||||
|
Loading…
Reference in New Issue
Block a user