Skip to content

Commit 8f65f34

Browse files
authored
Fix #1430 (#1464)
* Fix #1430 - ensure all config and sysinfo response are there before reloading the page * Fix printout * fix typo * PriorityMuxer: Remove emit out of QMutableMapIteratorion * Test - Build aarch64
1 parent 988ea97 commit 8f65f34

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/workflows/pull-request.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,13 @@ jobs:
5959
run: |
6060
mkdir -p ${{ matrix.dockerImage }}
6161
mv deploy/*.tar.gz ${{ matrix.dockerImage }}
62-
if: matrix.dockerImage != 'aarch64'
6362
6463
# Upload artifacts
6564
- name: Upload artifacts
6665
uses: actions/upload-artifact@v2
6766
with:
6867
name: ${{ matrix.dockerImage }}
6968
path: ${{ matrix.dockerImage }}
70-
if: matrix.dockerImage != 'aarch64'
7169

7270
######################
7371
###### macOS #########

assets/webconfig/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@
613613
"edt_dev_spec_switchOffOnBlack_title": "Switch off on black",
614614
"edt_dev_spec_switchOffOnbelowMinBrightness_title": "Switch-off, below minimum",
615615
"edt_dev_spec_syncOverwrite_title": "Disable synchronisation",
616-
"edt_dev_spec_targetIpHost_expl": "Hostname (DNS/mDNS) or IP-address (IPv4 orIPv6)",
616+
"edt_dev_spec_targetIpHost_expl": "Hostname (DNS/mDNS) or IP-address (IPv4 or IPv6)",
617617
"edt_dev_spec_targetIpHost_title": "Hostname/IP-address",
618618
"edt_dev_spec_targetIpHost_title_info": "The device's hostname or IP-address",
619619
"edt_dev_spec_targetIp_title": "IP-address",

assets/webconfig/js/content_index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ $(document).ready(function () {
214214
requestRequiresAdminAuth();
215215
});
216216

217-
$(window.hyperion).one("ready", function (event) {
218-
// Content will be loaded by the instance load/switch
217+
$(window.hyperion).on("ready", function (event) {
218+
loadContent(undefined,true);
219219

220220
//Hide capture menu entries, if no grabbers are available
221221
if ((window.serverInfo.grabbers.screen.available.length === 0) && (window.serverInfo.grabbers.video.available.length === 0)) {
@@ -283,7 +283,6 @@ $(document).ready(function () {
283283
requestServerConfig();
284284
setTimeout(requestServerInfo, 100)
285285
setTimeout(requestTokenInfo, 200)
286-
setTimeout(loadContent, 300, undefined, true)
287286
}
288287

289288
// determine button visibility
@@ -294,14 +293,14 @@ $(document).ready(function () {
294293
$('#btn_hypinstanceswitch').toggle(false)
295294

296295
// update listing for button
297-
updateHyperionInstanceListing()
296+
updateUiOnInstance(currentHyperionInstance);
297+
updateHyperionInstanceListing();
298298
});
299299

300300
$(window.hyperion).on("cmd-instance-switchTo", function (event) {
301301
requestServerConfig();
302302
setTimeout(requestServerInfo, 200)
303303
setTimeout(requestTokenInfo, 400)
304-
setTimeout(loadContent, 400, undefined, true)
305304
});
306305

307306
$(window.hyperion).on("cmd-effects-update", function (event) {
@@ -386,4 +385,3 @@ function SwitchToMenuItem(target, item) {
386385
}
387386
};
388387

389-

assets/webconfig/js/ui_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ function instanceSwitch(inst) {
190190
window.currentHyperionInstance = inst;
191191
window.currentHyperionInstanceName = getInstanceNameByIndex(inst);
192192
setStorage('lastSelectedInstance', inst)
193-
updateHyperionInstanceListing()
194193
}
195194

196195
function loadContentTo(containerId, fileName) {
@@ -1334,3 +1333,4 @@ function isValidHostnameOrIP4(value) {
13341333
function isValidHostnameOrIP(value) {
13351334
return (isValidHostnameOrIP4(value) || isValidIPv6(value) || isValidServicename(value));
13361335
}
1336+

include/hyperion/BGEffectHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private slots:
103103
}
104104
else if (_prioMuxer->getCurrentPriority() == PriorityMuxer::LOWEST_PRIORITY && _isBgEffectConfigured)
105105
{
106-
Debug(Logger::getInstance("HYPERION"),"Start background (color-) effect as it moved is scope");
106+
Debug(Logger::getInstance("HYPERION"),"Start background (color-) effect as it moved in scope");
107107
emit handleSettingsUpdate (settings::BGEFFECT, _bgEffectConfig);
108108
}
109109
}

libsrc/hyperion/PriorityMuxer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ void PriorityMuxer::updatePriorities()
346346

347347
_activeInputs.contains(0) ? newPriority = 0 : newPriority = PriorityMuxer::LOWEST_PRIORITY;
348348

349+
bool timeTrigger {false};
349350
QMutableMapIterator<int, PriorityMuxer::InputInfo> i(_activeInputs);
350351
while (i.hasNext()) {
351352
i.next();
@@ -387,12 +388,17 @@ void PriorityMuxer::updatePriorities()
387388
)
388389
)
389390
{
390-
emit signalTimeTrigger(); // as signal to prevent Threading issues
391+
timeTrigger = true;
391392
}
392393
}
393394
}
394395
}
395396

397+
if (timeTrigger)
398+
{
399+
emit signalTimeTrigger(); // signal to prevent Threading issues
400+
}
401+
396402
// evaluate, if manual selected priority is still available
397403
if(!_sourceAutoSelectEnabled)
398404
{

libsrc/leddevice/LedDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void LedDevice::setEnableAttempts(int maxEnableRetries, std::chrono::seconds ena
616616
_maxEnableAttempts = maxEnableRetries;
617617
_enableAttemptTimerInterval = enableRetryTimerInterval;
618618

619-
Debug(_log, "Max enable retries: %d, enable retry interval = %llds", _maxEnableAttempts, static_cast<int>(_enableAttemptTimerInterval.count()));
619+
Debug(_log, "Max enable retries: %d, enable retry interval = %llds", _maxEnableAttempts, _enableAttemptTimerInterval.count());
620620
}
621621

622622
void LedDevice::printLedValues(const std::vector<ColorRgb>& ledValues)

0 commit comments

Comments
 (0)