Skip to content

Commit

Permalink
未开启自动配置时移除聊天框提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanxven committed Jan 28, 2025
1 parent 6c20765 commit 19839d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/shards/auto-champ-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ export class AutoChampionConfigMain implements IAkariShardInitDispose {
Boolean(this._lc.data.champSelect.session)
] as const,
([id, g, c]) => {
if (id && this._lc.data.gameflow.phase === 'ChampSelect' && g && c) {
if (
this.settings.enabled &&
id &&
this._lc.data.gameflow.phase === 'ChampSelect' &&
g &&
c
) {
const gSession = this._lc.data.gameflow.session!
const cSession = this._lc.data.champSelect.session!

Expand Down

0 comments on commit 19839d9

Please sign in to comment.