Skip to content

Commit

Permalink
Minimally initialize UI, do not create main window
Browse files Browse the repository at this point in the history
  • Loading branch information
t-cordonnier committed Dec 28, 2024
1 parent d232f89 commit 1adc562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import org.omegat.util.StringUtil;
import org.omegat.util.gui.LanguageComboBoxRenderer;
import org.omegat.util.gui.StaticUIUtils;
import org.omegat.util.gui.UIDesignManager;

/**
* Controller for align file picker UI
Expand Down Expand Up @@ -523,7 +524,7 @@ public static void main(String[] args) throws Exception {
System.setProperty("apple.laf.useScreenMenuBar", "true");

Preferences.init();
Core.initializeGUI(Collections.emptyMap());
UIDesignManager.initialize();
PluginUtils.loadPlugins(Collections.emptyMap());
FilterMaster.setFilterClasses(PluginUtils.getFilterClasses());
Core.setFilterMaster(new FilterMaster(FilterMaster.createDefaultFiltersConfig()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
import org.omegat.util.Preferences;
import org.omegat.util.StringUtil;
import org.omegat.util.gui.DelegatingComboBoxRenderer;
import org.omegat.util.gui.FontUtil;
import org.omegat.util.gui.RoundedCornerBorder;
import org.omegat.util.gui.Styles;

Expand Down Expand Up @@ -542,7 +543,7 @@ public void mouseClicked(MouseEvent e) {

alignPanel.table.setTransferHandler(new AlignTransferHandler());
alignPanel.table.addPropertyChangeListener("dropLocation", new DropLocationListener());
alignPanel.table.setFont(Core.getMainWindow().getApplicationFont());
alignPanel.table.setFont(FontUtil.getScaledFont());
CoreEvents.registerFontChangedEventListener(alignPanel.table::setFont);

// Set initial state
Expand Down

0 comments on commit 1adc562

Please sign in to comment.