allow join on disable

This commit is contained in:
Not 2022-04-04 23:07:31 +02:00
parent ee251b7a44
commit c792dd1079
1 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,8 @@ local clamp
local scroll_to
local ticsToTime
local allowJoin
---------------
local cv_gui = CV_RegisterVar({
@ -85,6 +87,9 @@ local cv_enable = CV_RegisterVar({
PossibleValue = CV_OnOff,
func = function(v)
disable = $ or not v.value
if disable then
allowJoin(true)
end
end
})
@ -211,7 +216,7 @@ else
print("Failed to open file: ", FILENAME)
end
local function allowJoin(v)
function allowJoin(v)
if not cv_interrupt.value then
local y
if v then