Skip to content

Add exit script #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/extensions/scriptor/ScriptorRunner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
:label="current['rel']['name']"
@sl-after-hide="exitScriptor"
ref="runnerDialog"

>
<div class="wrapper-widgets" ref="messagewrapper">
<status-bar :id="state.id" :filename="current['dest']['name']"></status-bar>
Expand Down Expand Up @@ -134,6 +133,11 @@ import {useDebounceFn} from "@vueuse/core";
state.opened = false
scriptorAction.value.exitScript()
}
function exitScriptor()
{
state.opened = false
scriptorAction.value.exitScript()
}

watch(
() => state.scriptor?.messages.length,
Expand Down
2 changes: 0 additions & 2 deletions src/extensions/scriptor/store/scriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,9 @@ export const useScriptorStore = defineStore("scriptorStore", () => {

async function exitScript()
{
console.log("exit programm")
sendResult("exit","__exit__")
}


async function execute(code, id = null, context = {},scriptParams={}) {
let currentId = createNewInstance(id) // create needed Instance Object
state.currentInstance = currentId
Expand Down