Skip to content

Commit

Permalink
fix: not check update during dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 1, 2020
1 parent df0d302 commit 347822d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/service/BaseService.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { IS_DEV } from '@main/constant';
import { copyPassively, exists } from '@main/util/fs';
import { ensureDir } from '@xmcl/installer/util';
import { Task } from '@xmcl/task';
Expand Down Expand Up @@ -59,6 +60,7 @@ export default class BaseService extends Service {

@Singleton()
async checkUpdate() {
if (IS_DEV) return;
let handle = this.submit(this.app.checkUpdateTask());
try {
this.log('Check update');
Expand Down

0 comments on commit 347822d

Please sign in to comment.