mirror of
https://github.com/RealKai42/qwerty-learner-vscode.git
synced 2024-11-25 16:52:37 +08:00
fix: fix bug, upgrade version
This commit is contained in:
parent
9e4a8189ca
commit
47bfb7e8b7
@ -2,7 +2,7 @@
|
||||
"name": "qwerty-learner",
|
||||
"displayName": "Qwerty Learner",
|
||||
"description": "为 Coder 设计的单词记忆与英语肌肉记忆锻炼软件 摸🐟版",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"publisher": "kaiyi",
|
||||
"icon": "docs/logo.png",
|
||||
"engines": {
|
||||
|
@ -1,9 +1,8 @@
|
||||
import { dictionaries } from './resource/dictionary'
|
||||
import { DictPickItem } from './typings/index'
|
||||
import * as vscode from 'vscode'
|
||||
import cet4 from './assets/CET4_T.json'
|
||||
import { range } from 'lodash'
|
||||
import { compareWord, getConfig, getDictFile } from './utils'
|
||||
import { getConfig } from './utils'
|
||||
import { soundPlayer } from './sound'
|
||||
import { voicePlayer } from './resource/voice'
|
||||
import PluginState from './utils/PluginState'
|
||||
|
@ -191,17 +191,10 @@ export default class PluginState {
|
||||
}
|
||||
|
||||
prevWord() {
|
||||
if (this.order === 0) {
|
||||
if (this.chapter === 0) {
|
||||
this.chapter = this.totalChapters - 1
|
||||
} else {
|
||||
this.chapter -= 1
|
||||
}
|
||||
this.order = this.chapterLength - 1
|
||||
} else {
|
||||
if (this.order > 0) {
|
||||
this.order -= 1
|
||||
this.currentExerciseCount = 0
|
||||
}
|
||||
this.currentExerciseCount = 0
|
||||
}
|
||||
|
||||
nextWord() {
|
||||
|
Loading…
Reference in New Issue
Block a user