Painting underline fixes, Goto declaration fix (also freezing)

This commit is contained in:
Jindra Petřík
2025-05-30 10:44:32 +02:00
parent 3254e192c4
commit 3c0db47094
6 changed files with 316 additions and 209 deletions
@@ -435,7 +435,13 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
private Map<Openable, ABCExplorerDialog> abcExplorerDialogs = new WeakHashMap<>();
private Map<SWF, BreakpointListDialog> breakpointsListDialogs = new WeakHashMap<>();
private boolean loadingScrollPosEnabled = true;
public synchronized void setLoadingScrollPosEnabled(boolean loadingScrollPosEnabled) {
this.loadingScrollPosEnabled = loadingScrollPosEnabled;
}
public void savePins() {
pinsPanel.save();
}
@@ -6361,16 +6367,19 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
folderPreviewPanel.setSelectedItems(folderItems);
folderPreviewScrollBar.setValue(scrollValue);
}
View.execInEventDispatchLater(new Runnable() {
@Override
public void run() {
scrollPosStorage.loadScrollPos(oldItem);
}
});
if (loadingScrollPosEnabled) {
View.execInEventDispatchLater(new Runnable() {
@Override
public void run() {
scrollPosStorage.loadScrollPos(oldItem);
}
});
}
}
public void repaintTree() {
tagTree.repaint();
tagListTree.repaint();