mirror of https://github.com/hyper-tuner/ini.git
Handle global dialogs
This commit is contained in:
parent
9ac8864fc2
commit
cc4e710521
10
src/ini.ts
10
src/ini.ts
|
@ -681,12 +681,10 @@ export class INI implements ParserInterface {
|
|||
P.all,
|
||||
).parse(line);
|
||||
|
||||
if (!this.currentDialog) {
|
||||
throw new Error('Dialog not set');
|
||||
}
|
||||
|
||||
if (helpResult.status) {
|
||||
this.result.dialogs[this.currentDialog!].help = INI.sanitize(helpResult.value.help);
|
||||
if (this.currentDialog) {
|
||||
if (helpResult.status) {
|
||||
this.result.dialogs[this.currentDialog!].help = INI.sanitize(helpResult.value.help);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: missing fields:
|
||||
|
|
Loading…
Reference in New Issue