This commit is contained in:
dnurkkala 2018-06-21 18:11:50 +00:00 • committed by GitHub
commit ab3c34476c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,15 +55,21 @@ local function main()
end) end)
end) end)
toolbar:CreateButton("Sync In", "Sync into Roblox Studio", Config.icons.syncIn) local function syncIn()
.Click:Connect(function()
checkUpgrade() checkUpgrade()
pluginInstance:syncIn() pluginInstance:syncIn()
:catch(function(err) :catch(function(err)
warn(err) warn(err)
end) end)
end) end
local dShort = "Sync In"
local dLong = "Sync into Roblox Studio"
toolbar:CreateButton(dShort, dLong, Config.icons.syncIn).Click:Connect(syncIn)
plugin:CreatePluginAction("RojoSyncIn", dShort, dLong).Triggered:Connect(syncIn)
toolbar:CreateButton("Toggle Polling", "Poll server for changes", Config.icons.togglePolling) toolbar:CreateButton("Toggle Polling", "Poll server for changes", Config.icons.togglePolling)
.Click:Connect(function() .Click:Connect(function()