Clean
This commit is contained in:
parent
36f462597a
commit
05a18765c9
|
@ -14,7 +14,6 @@ import io.gitlab.jfronny.inceptum.launcher.system.instance.Instance;
|
|||
import io.gitlab.jfronny.inceptum.launcher.system.instance.InstanceNameTool;
|
||||
import io.gitlab.jfronny.inceptum.launcher.system.launch.LaunchType;
|
||||
import org.gnome.adw.ActionRow;
|
||||
import org.gtk.gio.ActionMap;
|
||||
import org.gtk.gio.Menu;
|
||||
import org.gtk.gtk.Stack;
|
||||
import org.gtk.gtk.*;
|
||||
|
@ -24,7 +23,7 @@ import java.util.*;
|
|||
import java.util.function.Consumer;
|
||||
|
||||
public class InstanceListEntryFactory extends SignalListItemFactory {
|
||||
public InstanceListEntryFactory(List<Instance> instanceList, ActionMap actionMap) {
|
||||
public InstanceListEntryFactory(List<Instance> instanceList) {
|
||||
super();
|
||||
onSetup(item -> {
|
||||
var thumbnail = new InstanceThumbnail();
|
||||
|
|
|
@ -24,6 +24,6 @@ public abstract class BuiltMenuItem {
|
|||
}
|
||||
|
||||
public void setIconName(String iconName) {
|
||||
// Objects.requireNonNull(menuItem).icon = new ThemedIcon(iconName);
|
||||
Objects.requireNonNull(menuItem).icon = new ThemedIcon(iconName);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ public class MainWindow extends ApplicationWindow {
|
|||
|
||||
listView = new Clamp();
|
||||
listView.maximumSize = 900;
|
||||
listView.child = new ListView(singleSelection, new InstanceListEntryFactory(instanceList, this));
|
||||
listView.child = new ListView(singleSelection, new InstanceListEntryFactory(instanceList));
|
||||
listView.child.marginHorizontal = 24;
|
||||
listView.child.marginVertical = 12;
|
||||
listView.child.addCssClass("content");
|
||||
|
|
Loading…
Reference in New Issue