Skip to content

Commit

Permalink
Fix tab condition check when learning Personal Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
yarukishi committed May 4, 2024
1 parent 4cc7176 commit 6035efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7435,6 +7435,7 @@ function sentience(){
global.settings.msgFilters.research_queue.unlocked = true;
global.settings.msgFilters.research_queue.vis = true;
}
// No need to check for civTab setting because it was set to another tab above
if (global.settings.tabLoad){
$(`#resQueue`).removeAttr('style');
}
Expand Down
3 changes: 2 additions & 1 deletion src/tech.js
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,8 @@ const techs = {
},
post(){
calcRQueueMax();
if (global.settings.tabLoad){
// Research queue is always visible on the research tab, so sub-tab check is intentionally excluded
if (global.settings.tabLoad || global.settings.civTabs === 3){
$(`#resQueue`).removeAttr('style');
}
}
Expand Down

0 comments on commit 6035efd

Please sign in to comment.