mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Add never option to Confirmation (#893)
This commit is contained in:
parent
8f9e307930
commit
c7a4f892e3
3 changed files with 6 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ local function invertTbl(tbl)
|
|||
end
|
||||
|
||||
local invertedLevels = invertTbl(Log.Level)
|
||||
local confirmationBehaviors = { "Initial", "Always", "Large Changes", "Unlisted PlaceId" }
|
||||
local confirmationBehaviors = { "Initial", "Always", "Large Changes", "Unlisted PlaceId", "Never" }
|
||||
|
||||
local function Navbar(props)
|
||||
return Theme.with(function(theme)
|
||||
|
|
|
|||
|
|
@ -582,6 +582,9 @@ function App:startSession()
|
|||
return "Accept"
|
||||
end
|
||||
end
|
||||
elseif confirmationBehavior == "Never" then
|
||||
Log.trace("Accepting patch without confirmation because behavior is set to Never")
|
||||
return "Accept"
|
||||
end
|
||||
|
||||
-- The datamodel name gets overwritten by Studio, making confirmation of it intrusive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue