Skip to content

Commit

Permalink
feat: disable banner
Browse files Browse the repository at this point in the history
  • Loading branch information
CKylinMC committed Jul 17, 2023
1 parent fa68ee4 commit 6a76029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export async function searchCloud(name, askdownload=false, download = false, out
const reposource = list.reposource;
const repo = list.repofile;
const pkgs = list.pkgs;
if ('banner' in list) {
const disableBanner = await Settings.get('disable_banner', false);
if (!disableBanner && 'banner' in list) {
log(`========================[BANNER]========================`)
log(list.banner);
log(`========================================================`)
Expand Down
1 change: 1 addition & 0 deletions src/lib/Db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class Settings{
await Settings.set('proxy', '', true);
await Settings.set('update_url', CONSTS.UPDATE_URL, true);
await Settings.set('auto_select_source', true, true);
await Settings.set('disable_banner', false, true);
}
}

Expand Down

0 comments on commit 6a76029

Please sign in to comment.