Skip to content

Commit

Permalink
style: import clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharlottes committed Dec 25, 2023
1 parent 8183f3f commit 6e4e4b9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/mlogwatcher/Setting.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
package mlogwatcher;

import arc.Core;
import arc.scene.Group;
import arc.scene.ui.Dialog;
import arc.scene.ui.Label;
import arc.scene.ui.TextField;
import arc.scene.ui.layout.*;

import mindustry.Vars;
import mindustry.ui.Styles;
import mindustry.ui.dialogs.BaseDialog;

public class Setting {
public static void init(){
Expand All @@ -25,14 +20,14 @@ public static void init(){
settingTable.center();
settingTable.add(Constants.Bundles.settingMlogPathLabel).row();
settingTable.add(label).row();
settingTable.button(Constants.Bundles.settingMlogSelectButton, () -> {
settingTable.button(Constants.Bundles.settingMlogSelectButton, () ->
Vars.platform.showFileChooser(true, Constants.Bundles.settingFileChooserTitle, field.getText(), fi -> {
label.setText(fi.absolutePath());
Core.settings.put(Constants.Settings.mlogPath, fi.absolutePath());
FileWatcher.stopWatcherThread();
FileWatcher.startWatcherThread();
});
}).width(280f).height(60f).pad(16f).row();
})
).width(280f).height(60f).pad(16f).row();
settingTable.table(fieldTable -> {
fieldTable.add(Constants.Bundles.settingExtensionInputLabel);
fieldTable.add(field);
Expand Down

0 comments on commit 6e4e4b9

Please sign in to comment.