Skip to content

Commit

Permalink
fix search release
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Jun 26, 2024
1 parent a572d0f commit 18ce13d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/specific/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,17 @@ function Main_SwitchScreenAction(removekey) {
if (Main_values.Main_Go !== Main_aGame) Main_values.Main_BeforeAgameisSet = false;

Main_CounterDialogRst();

if (Main_Switchobj[Main_values.Main_Go]) Main_Switchobj[Main_values.Main_Go]();
else Main_Switchobj[1]();

if (removekey) Main_RemoveKeys();
}

function Main_OpenSearch() {
if (!Main_values.Search_isSearching) Main_values.Main_BeforeSearch = Main_values.Main_Go;
if (!Main_values.Search_isSearching) {
Main_values.Main_BeforeSearch = Main_values.Main_Go;
}

Main_ExitCurrent(Main_values.Main_Go);
Main_values.Main_Go = Main_Search;
Main_HideWarningDialog();
Expand Down
2 changes: 1 addition & 1 deletion app/specific/Screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ function Screens_loadDataSuccessFinish() {
});
} else {
Main_ready(function () {
//Values that need to be reset to prevent app odd behavier
//Values that need to be reset to prevent app odd behavior
Main_values.Search_isSearching = false;
Main_values.Main_BeforeChannelisSet = false;
Main_values.Main_BeforeAgameisSet = false;
Expand Down
4 changes: 3 additions & 1 deletion app/specific/Sidepannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ function Sidepannel_KeyEnterBase() {
if (
!Main_values.Search_isSearching &&
(Main_values.Main_Go === Main_ChannelContent || Main_values.Main_Go === Main_ChannelClip || Main_values.Main_Go === Main_ChannelVod)
)
) {
ChannelContent_SetChannelValue();
}
Main_OpenSearch();
} else document.body.addEventListener('keydown', Sidepannel_Callback, false);
} else if (Main_values.Sidepannel_Pos === 8) {
Expand Down Expand Up @@ -199,6 +200,7 @@ function Sidepannel_Go(GoTo) {
document.body.addEventListener('keydown', Sidepannel_Callback, false);
Main_SwitchScreenAction();
} else {
Main_values.Search_isSearching = false;
Main_values.Main_Before = Main_values.Main_Go;
Main_values.Main_Go = GoTo;
Main_ExitCurrent(Main_values.Main_Before);
Expand Down

0 comments on commit 18ce13d

Please sign in to comment.