Skip to content

Commit b44e68a

Browse files
author
arch
committed
add kill button
1 parent b402930 commit b44e68a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/Installer/assets/main.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,16 @@ function gui()
116116
ofs.Text("Version: "..mtfgVersion)
117117
ofs.Text("Action:")
118118

119+
ofs.SameLine()
119120
if not processHandleMTFG then
120-
ofs.SameLine()
121+
121122
if ofs.Button("Start MTFG") then
122123
start_funscript_generator()
123124
end
125+
else
126+
if ofs.Button("Kill MTFG") then
127+
os.execute("taskkill /f /im funscript-editor.exe")
128+
end
124129
end
125130

126131
ofs.SameLine()

0 commit comments

Comments
 (0)