Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/main/java/core/packetproxy/gui/GUIMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private String getPaneString(Panes num) {
private GUIMain(String title) {
try {

setIcon();
gui_history = initProjectAndHistory();
setLookandFeel();
setTitle(title);
Expand Down Expand Up @@ -158,6 +159,11 @@ public void windowClosing(WindowEvent event) {
}
}

private void setIcon() throws Exception {
setIconForWindows();
addDockIconForMac();
}

private GUIHistory initProjectAndHistory() throws Exception {
var chooser = new GUIProjectChooserDialog(this);
var restore = chooser.chooseAndSetup();
Expand Down Expand Up @@ -195,10 +201,8 @@ private void setLookandFeel() throws Exception {
// スクロールバーの幅を太くする
UIManager.put("ScrollBar.width", 15);

setIconForWindows();
addShortcutForWindows();
addShortcutForMac();
addDockIconForMac();
}

/** Windowsにアイコンを表示する */
Expand Down