Fix typos

This commit is contained in:
LordGrey 2023-11-18 20:48:02 +01:00
parent dd9a18aca3
commit 721eef2806
4 changed files with 64 additions and 62 deletions

View File

@ -20,32 +20,35 @@ $(document).ready( function(error) {
performTranslation();
getReleases(function (callback) {
if(callback)
{
if (callback) {
var matches = 0;
for (var key in window.gitHubVersionList)
{
for (var key in window.gitHubVersionList) {
if(window.gitHubVersionList[key].name == null || window.gitHubVersionList[key].tag_name.includes('rc') || (window.serverConfig.general.watchedVersionBranch == "Stable" && (window.gitHubVersionList[key].tag_name.includes('beta') || window.gitHubVersionList[key].tag_name.includes('alpha'))) || (window.serverConfig.general.watchedVersionBranch == "Beta" && window.gitHubVersionList[key].tag_name.includes('alpha')))
{
if (window.gitHubVersionList[key].name == null ||
window.gitHubVersionList[key].tag_name.includes('rc') ||
(window.serverConfig.general.watchedVersionBranch == "Stable" &&
(window.gitHubVersionList[key].tag_name.includes('beta') ||
window.gitHubVersionList[key].tag_name.includes('alpha')
)
) ||
(window.serverConfig.general.watchedVersionBranch == "Beta"
&& window.gitHubVersionList[key].tag_name.includes('Alpha')
)) {
continue;
}
var danger;
var type;
if (window.gitHubVersionList[key].tag_name.includes('beta'))
{
if (window.gitHubVersionList[key].tag_name.includes('beta')) {
danger = 'warning';
type = 'Beta';
}
else if (window.gitHubVersionList[key].tag_name.includes('alpha'))
{
else if (window.gitHubVersionList[key].tag_name.includes('alpha')) {
danger = 'danger';
type = 'Alpha';
}
else
{
else {
danger = 'default';
type = 'Stable';
}
@ -58,8 +61,7 @@ $(document).ready( function(error) {
if (matches == 0)
$('#versionlist').append($.i18n('update_no_updates_for_branch'));
}
else
{
else {
$('#versionlist').append($.i18n('update_error_getting_versions'));
}
});

View File

@ -360,7 +360,7 @@ int LedDevice::rewriteLEDs()
int LedDevice::writeBlack(int numberOfWrites)
{
Debug(_log, "Set LED strip to black to switch of LEDs");
Debug(_log, "Set LED strip to black to switch LEDs off");
return writeColor(ColorRgb::BLACK, numberOfWrites);
}

View File

@ -1301,7 +1301,7 @@ QJsonObject LedDevicePhilipsHueBridge::discover(const QJsonObject& /*params*/)
);
#else
QString discoveryMethod("ssdp");
deviceList = discover();
deviceList = discoverSsdp();
#endif
devicesDiscovered.insert("discoveryMethod", discoveryMethod);