From f9ad8a4c20554bafaa5961ff44af0cec3f65fdb0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 7 Jun 2018 20:09:50 +0200 Subject: try kill --- public/bundle.js | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'public/bundle.js') diff --git a/public/bundle.js b/public/bundle.js index 8090871..e292bc6 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -8119,6 +8119,11 @@ var Pix2WavLive = function (_Component) { value: function interrupt() { this.props.actions.queue.stop_task('gpu'); } + }, { + key: 'exit', + value: function exit() { + this.props.actions.queue.stop_task('gpu', { sigkill: true }); + } }, { key: 'togglePlaying', value: function togglePlaying() { @@ -8148,8 +8153,8 @@ var Pix2WavLive = function (_Component) { // console.log('sequence', this.props.opt) return (0, _preact.h)( 'div', - { className: 'app centered' }, - (0, _preact.h)(_common.Player, { width: 424, height: 256 }), + { className: 'app pix2wav centered' }, + (0, _preact.h)(_common.Player, { width: 256, height: 256 }), (0, _preact.h)( 'div', { className: 'params row' }, @@ -8265,7 +8270,7 @@ var Pix2WavLive = function (_Component) { }, (0, _preact.h)(_common.Slider, { live: true, name: 'sequence_frac', - min: 0.0, max: 0.5, type: 'float' + min: 0.0, max: 1, type: 'float' }), (0, _preact.h)(_common.Slider, { live: true, name: 'process_frac', @@ -8386,6 +8391,16 @@ var Pix2WavLive = function (_Component) { } }, 'Interrupt' + ), + (0, _preact.h)( + _common.Button, + { + title: 'Last resort', + onClick: function onClick() { + return _this2.exit(); + } + }, + 'Exit' ) ); } @@ -8409,6 +8424,16 @@ var Pix2WavLive = function (_Component) { } }, 'Interrupt' + ), + (0, _preact.h)( + _common.Button, + { + title: 'Last resort', + onClick: function onClick() { + return _this2.exit(); + } + }, + 'Exit' ) ); } -- cgit v1.2.3-70-g09d2