File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export interface PyWebview {
11
11
load_project_id : ( ) => Promise < string | null > ;
12
12
backup_project : ( content : string ) => Promise < boolean > ;
13
13
restore_project : ( ) => Promise < string > ;
14
- run_project : ( ) => Promise < void > ;
14
+ run_project : ( script : string ) => Promise < void > ;
15
15
}
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ const setupDesktopTools = () => {
111
111
return getApi ( ) ! . restore_project ( ) ;
112
112
}
113
113
114
- const runProject = async ( ) : Promise < void > => {
114
+ const runProject = async ( script : string ) : Promise < void > => {
115
115
if ( ! isDesktop ( ) ) return ;
116
116
await waitForPWV ( ) ;
117
- return getApi ( ) ! . run_project ( ) ;
117
+ return getApi ( ) ! . run_project ( script ) ;
118
118
}
119
119
120
120
return {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { Suggestion } from "@defs/UI";
6
6
import { isDesktop , loadProjectId , runProject } from "@utils/desktopTools" ;
7
7
import { loadData , wipeData } from "@utils/persistentTools" ;
8
8
import { generateId } from "@utils/generatorTools" ;
9
- import { downloadScript } from "@utils/compilerTools" ;
9
+ import { downloadScript , generateScript } from "@utils/compilerTools" ;
10
10
import {
11
11
loadProject ,
12
12
saveProject ,
@@ -89,7 +89,7 @@ const setupProjectTools = () => {
89
89
{
90
90
name : "Run Project" ,
91
91
icon : "CirclePlay" ,
92
- action : ( ) => runProject ( ) ,
92
+ action : ( ) => runProject ( generateScript ( nodeSystem , entries ) ) ,
93
93
}
94
94
] : [ ] ) ,
95
95
] ;
You can’t perform that action at this time.
0 commit comments