Commit 24d10e06 authored by 神楽坂玲奈's avatar 神楽坂玲奈

卡组删除

parent 386830a0
...@@ -264,9 +264,11 @@ export class YGOProComponent implements OnInit { ...@@ -264,9 +264,11 @@ export class YGOProComponent implements OnInit {
} }
async delete_deck(deck: string) { async delete_deck(deck: string) {
if (confirm('确认删除?')) {
await new Promise(resolve => fs.unlink(path.join(this.app.local!.path, 'deck', deck + '.ydk'), resolve)); await new Promise(resolve => fs.unlink(path.join(this.app.local!.path, 'deck', deck + '.ydk'), resolve));
return this.refresh() return this.refresh()
} }
}
async fix_fonts(data: SystemConf) { async fix_fonts(data: SystemConf) {
if (!await this.get_font([data.numfont])) { if (!await this.get_font([data.numfont])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment