Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
qxchuckle committed Sep 7, 2023
1 parent 5af0ce7 commit 39dde92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adolescentMode/AdolescentStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class AdolescentStatusBar {
this.statusBar.show();
this._context.subscriptions.push(vscode.commands.registerCommand('cec-ide.antiAddictionRemind', () => {
this.antiAddictionRemind = !this.antiAddictionRemind;
if(this.antiAddictionRemind){
if (this.antiAddictionRemind) {
this.formatActiveTime();
vscode.window.showInformationMessage('已开启防沉迷提醒');
this.statusBar.tooltip = '点击临时关闭防沉迷检测';
}else{
} else {
vscode.window.showInformationMessage('已临时关闭防沉迷检测');
this.statusBar.tooltip = '点击开启防沉迷检测';
}
Expand All @@ -54,7 +54,7 @@ class AdolescentStatusBar {
private intervalInit() {
this.timer = setInterval(() => {
this.updateStatus();
}, 3000);
}, 60 * 1000);
}

private updateStatus() {
Expand Down

0 comments on commit 39dde92

Please sign in to comment.