issue #10 #11 Fix hcap.property.InstallerMenuItem.POWER_MANAGE applyied just instant power mode changed. Fix HDMI setting idex by TV model.
This commit is contained in:
@@ -480,6 +480,7 @@ HotelTV.ui_appfull = (function() {
|
||||
*/
|
||||
function __uifxn_AppFull_OnHdmiConChangeEvt(_evt) {
|
||||
let _state = HotelTV.state;
|
||||
let _devinfo = HotelTV.devinfo;
|
||||
let _trTbl = HotelTV.translation;
|
||||
// {Number} param.index - index of the HDMI which was connected or disconnected.
|
||||
// {Boolean} param.connected - true if the HDMI is connected, else false.
|
||||
@@ -501,10 +502,15 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.menu.stage.prev = _state.menu.stage.cur;
|
||||
_state.menu.stage.cur = "external_av_hdmi";
|
||||
_state.external_input.connected = true;
|
||||
_state.external_input.last_input.index = Number(_evt.index);
|
||||
// NOTE: US741H0ND모델에서 HDMI셋팅 인덱스는 0부터, 이 부분은 LG에 문의 필요
|
||||
if (_devinfo.model_name.includes("US761H0ND")) {
|
||||
_state.external_input.last_input.index = Number(_evt.index);
|
||||
} else {
|
||||
_state.external_input.last_input.index = Number(_evt.index)-1;
|
||||
}
|
||||
setTimeout(function(){
|
||||
$('body,html').fadeOut(500, function(){
|
||||
let __retSuccess = HotelTV.hal.SetExternalInput("HDMI", Number(_evt.index));
|
||||
let __retSuccess = HotelTV.hal.SetExternalInput("HDMI", _state.external_input.last_input.index);
|
||||
if ( __retSuccess==false ){
|
||||
_state.external_input.connected = false;
|
||||
_state.external_input.last_input.index = 0;
|
||||
|
||||
Reference in New Issue
Block a user