forked from rojo-rbx/rojo
Improvements to sync reminder UX (#1096)
This commit is contained in:
@@ -12,12 +12,14 @@ local Roact = require(Packages.Roact)
|
||||
local defaultSettings = {
|
||||
openScriptsExternally = false,
|
||||
twoWaySync = false,
|
||||
autoReconnect = false,
|
||||
showNotifications = true,
|
||||
syncReminder = true,
|
||||
syncReminderMode = "Notify" :: "None" | "Notify" | "Fullscreen",
|
||||
syncReminderPolling = true,
|
||||
checkForUpdates = true,
|
||||
checkForPrereleases = false,
|
||||
autoConnectPlaytestServer = false,
|
||||
confirmationBehavior = "Initial",
|
||||
confirmationBehavior = "Initial" :: "Never" | "Initial" | "Large Changes" | "Unlisted PlaceId",
|
||||
largeChangesConfirmationThreshold = 5,
|
||||
playSounds = true,
|
||||
typecheckingEnabled = false,
|
||||
@@ -108,4 +110,14 @@ function Settings:getBinding(name)
|
||||
return bind
|
||||
end
|
||||
|
||||
function Settings:getBindings(...: string)
|
||||
local bindings = {}
|
||||
for i = 1, select("#", ...) do
|
||||
local source = select(i, ...)
|
||||
bindings[source] = self:getBinding(source)
|
||||
end
|
||||
|
||||
return Roact.joinBindings(bindings)
|
||||
end
|
||||
|
||||
return Settings
|
||||
|
||||
Reference in New Issue
Block a user