Skip to content

Commit 6d59f3a

Browse files
committed
feat(GUI): add log to shutdown button
1 parent 957c3ef commit 6d59f3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/i18nupdatemod/core/LoadDetailUI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import i18nupdatemod.I18nUpdateMod;
44
import i18nupdatemod.entity.LoadStage;
5+
import i18nupdatemod.util.Log;
56

67
import javax.swing.*;
78
import java.awt.*;
@@ -117,12 +118,12 @@ public static void hide() {
117118
}
118119

119120
private void shutdown(){
121+
I18nUpdateMod.shouldShutdown = true;
122+
Log.info("User shutdown task");
120123
if (!useGUI) {
121-
I18nUpdateMod.shouldShutdown = true;
122124
return;
123125
}
124126
hide();
125-
I18nUpdateMod.shouldShutdown = true;
126127
}
127128

128129
public static void setStage(LoadStage stage) {

0 commit comments

Comments
 (0)