Fix single scripts not working

This commit is contained in:
crschnick
2025-07-20 03:27:19 +00:00
parent 669e6715c8
commit 9f6a2e7782
3 changed files with 24 additions and 7 deletions
@@ -63,9 +63,6 @@ public interface ActionProvider {
.sorted(Comparator.comparing(p -> p.type().getModule().getName()))
.map(p -> p.get())
.toList());
for (var p : DataStoreProviders.getAll()) {
ALL.addAll(p.getActionProviders());
}
}
}
}
@@ -195,8 +195,4 @@ public interface DataStoreProvider {
String getId();
List<Class<?>> getStoreClasses();
default List<ActionProvider> getActionProviders() {
return List.of();
}
}
@@ -36,6 +36,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
ScriptHierarchy hierarchy;
@Override
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
return RunTerminalScriptActionProvider.Action.builder()
.ref(ref)
.scriptStore(hierarchy.getLeafBase())
.build();
}
@Override
public RunTerminalScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
return RunTerminalScriptActionProvider.Action.builder()
@@ -84,6 +92,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
ScriptHierarchy hierarchy;
@Override
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
return RunHubScriptActionProvider.Action.builder()
.ref(ref)
.scriptStore(hierarchy.getLeafBase())
.build();
}
@Override
public RunHubScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
return RunHubScriptActionProvider.Action.builder()
@@ -137,6 +153,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
ScriptHierarchy hierarchy;
@Override
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
return RunBackgroundScriptActionProvider.Action.builder()
.ref(ref)
.scriptStore(hierarchy.getLeafBase())
.build();
}
@Override
public RunBackgroundScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
return RunBackgroundScriptActionProvider.Action.builder()