Skip to content

Commit

Permalink
Merge pull request #496 from Bl3nd/master
Browse files Browse the repository at this point in the history
Font size spinner also updates opened tabs automatically now.
  • Loading branch information
Konloch committed Apr 13, 2024
2 parents 4343264 + d633fd0 commit 4399f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -675,7 +675,7 @@ public static void refreshAllTabTitles()
}

/**
* Refreshes the title on all of the opened tabs
* Refreshes all the opened tabs
*/
public static void refreshAllTabs()
{
Expand All @@ -684,7 +684,7 @@ public static void refreshAllTabs()
updateBusyStatus(true);
for (int i = 0; i < BytecodeViewer.viewer.workPane.tabs.getTabCount(); i++)
{
ResourceViewer viewer = ((TabbedPane) BytecodeViewer.viewer.workPane.tabs.getTabComponentAt(i)).resource;
ResourceViewer viewer = (ResourceViewer) BytecodeViewer.viewer.workPane.tabs.getComponentAt(i);
viewer.refresh(null);
}
updateBusyStatus(false);
Expand Down
Expand Up @@ -2,10 +2,8 @@

import java.awt.*;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.*;
import java.util.List;
import java.util.Map;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
Expand Down Expand Up @@ -352,7 +350,6 @@ public MainViewerGUI()
uiComponents.add(resourcePane);
uiComponents.add(searchBoxPane);
uiComponents.add(workPane);
// uiComponents.add(hierarchy);

viewPane1.setDefault();
viewPane2.setDefault();
Expand Down Expand Up @@ -465,6 +462,7 @@ public void buildSettingsMenu()

BytecodeViewer.updateAllFonts(font);
BytecodeViewer.updateUI();
BytecodeViewer.refreshAllTabs();
});
fontSize.add(fontSpinner);

Expand Down

0 comments on commit 4399f05

Please sign in to comment.