Improvements to sync reminder UX (#1096)

This commit is contained in:
boatbomber
2025-08-28 17:15:34 -07:00
committed by GitHub
parent 4e9e6233ff
commit 54e0ff230b
7 changed files with 513 additions and 137 deletions

View File

@@ -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