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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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