fix #8027
parent
7bfa96ed16
commit
6b6a4da81a
|
@ -68,7 +68,12 @@ export default class StormCtrl {
|
|||
this.redrawSlow();
|
||||
}
|
||||
|
||||
naturalFlag = () => {
|
||||
endNow = (): void => {
|
||||
this.pushToHistory(false);
|
||||
this.end();
|
||||
};
|
||||
|
||||
naturalFlag = (): void => {
|
||||
this.pushToHistory(false);
|
||||
this.end();
|
||||
};
|
||||
|
|
|
@ -56,7 +56,7 @@ const renderControls = (ctrl: StormCtrl): VNode =>
|
|||
'data-icon': 'b',
|
||||
title: ctrl.trans('endRun'),
|
||||
},
|
||||
hook: onInsert(el => el.addEventListener('click', ctrl.end))
|
||||
hook: onInsert(el => el.addEventListener('click', ctrl.endNow))
|
||||
})
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue