-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a plugin action for the sync in command. #80
Conversation
Cool, thanks! |
plugin/src/Main.server.lua
Outdated
end | ||
|
||
toolbar:CreateButton("Sync In", "Sync into Roblox Studio", Config.icons.syncIn).Click:Connect(syncIn) | ||
plugin:CreatePluginAction("RojoSyncIn", "Sync In Rojo Project", "Pulls the connected Rojo project into Studio.").Triggered:Connect(syncIn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this line is too long based on the Luacheck policy we've got, and I'm inclined to agree.
Can we take the strings out and put them into constants? I think the 'Sync In Rojo Project' part should probably be the same between the button and the action.
end | ||
|
||
local dShort = "Sync In" | ||
local dLong = "Sync into Roblox Studio" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we spell out these variable names? shortLabel
and longLabel
would be fine I imagine.
I tried to manually merge this locally and messed it up! Rest assured, your code has landed and should be in the next release. |
Closes #79.