mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Lock 'Check for Updates' setting if user blocks access to api.github.com (#1297)
This commit is contained in:
parent
7ade19293c
commit
a30a8ecd0f
3 changed files with 28 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ local Log = require(Packages.Log)
|
|||
local Assets = require(Plugin.Assets)
|
||||
local Settings = require(Plugin.Settings)
|
||||
local Theme = require(Plugin.App.Theme)
|
||||
local Version = require(Plugin.Version)
|
||||
|
||||
local IconButton = require(Plugin.App.Components.IconButton)
|
||||
local ScrollingFrame = require(Plugin.App.Components.ScrollingFrame)
|
||||
|
|
@ -193,6 +194,8 @@ function SettingsPage:render()
|
|||
id = "checkForUpdates",
|
||||
name = "Check For Updates",
|
||||
description = "Notify about newer compatible Rojo releases",
|
||||
locked = Version.isApiBlocked(),
|
||||
lockedTooltip = "(HTTP requests to api.github.com are blocked, Rojo cannot fetch what the latest version is.)",
|
||||
transparency = self.props.transparency,
|
||||
layoutOrder = layoutIncrement(),
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue