mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Small fixes
This commit is contained in:
parent
f1c5337355
commit
1627f30a62
1 changed files with 5 additions and 3 deletions
|
@ -8,6 +8,7 @@ import io.xpipe.app.comp.store.StoreSection;
|
||||||
import io.xpipe.app.ext.ActionProvider;
|
import io.xpipe.app.ext.ActionProvider;
|
||||||
import io.xpipe.app.ext.DataStoreProvider;
|
import io.xpipe.app.ext.DataStoreProvider;
|
||||||
import io.xpipe.app.ext.DataStoreUsageCategory;
|
import io.xpipe.app.ext.DataStoreUsageCategory;
|
||||||
|
import io.xpipe.app.ext.ProcessControlProvider;
|
||||||
import io.xpipe.app.fxcomps.Comp;
|
import io.xpipe.app.fxcomps.Comp;
|
||||||
import io.xpipe.app.storage.DataStorage;
|
import io.xpipe.app.storage.DataStorage;
|
||||||
import io.xpipe.app.storage.DataStoreEntry;
|
import io.xpipe.app.storage.DataStoreEntry;
|
||||||
|
@ -26,10 +27,11 @@ public interface ShellStoreProvider extends DataStoreProvider {
|
||||||
return new ActionProvider.Action() {
|
return new ActionProvider.Action() {
|
||||||
@Override
|
@Override
|
||||||
public void execute() throws Exception {
|
public void execute() throws Exception {
|
||||||
ShellStore store = entry.getStore().asNeeded();
|
var replacement = ProcessControlProvider.get().replace(entry.ref());
|
||||||
|
ShellStore store = replacement.getStore().asNeeded();
|
||||||
TerminalLauncher.open(
|
TerminalLauncher.open(
|
||||||
entry,
|
replacement.get(),
|
||||||
DataStorage.get().getStoreEntryDisplayName(entry),
|
DataStorage.get().getStoreEntryDisplayName(replacement.get()),
|
||||||
null,
|
null,
|
||||||
ScriptStore.controlWithDefaultScripts(store.control()));
|
ScriptStore.controlWithDefaultScripts(store.control()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue