mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-22 17:43:44 +00:00
fixed small changeChannel bug
This commit is contained in:
parent
28a77b357f
commit
dba006e124
Software/waveview/src
@ -22,10 +22,10 @@ class TriggerWidget extends React.Component<any, any> {
|
||||
changeChannel = (channelNumber: number) => {
|
||||
let chStatus = (this.props.verticalWidget.settings as any[]).map(x => x.status > 0);
|
||||
let setChState = setChHelper(chStatus[0], chStatus[1], chStatus[2], chStatus[3], channelNumber);
|
||||
Plumber.getInstance().handleSetchState(setChState);
|
||||
Plumber.getInstance().handleSetChState(setChState);
|
||||
this.props.dispatch({type: 'vertical/setChannelOrder', payload: setChState.chOrder});
|
||||
this.props.dispatch({type: 'trigger/changeChannel', payload: channelNumber});
|
||||
this.props.dispatch({type: 'vertical/changeChannelStatus', payload: channelNumber});
|
||||
this.props.dispatch({type: 'vertical/changeChannelStatus', payload: channelNumber - 1});
|
||||
}
|
||||
|
||||
// Trigger Type
|
||||
|
@ -58,7 +58,7 @@ class VerticalWidget extends React.Component<any, any> {
|
||||
chStatus[channelNumber] = !chStatus[channelNumber];
|
||||
let triggerCh = this.props.triggerWidget.triggerChannel;
|
||||
let setChState = setChHelper(chStatus[0], chStatus[1], chStatus[2], chStatus[3], triggerCh);
|
||||
Plumber.getInstance().handleSetchState(setChState);
|
||||
Plumber.getInstance().handleSetChState(setChState);
|
||||
this.props.dispatch({type: 'vertical/setChannelOrder', payload: setChState.chOrder})
|
||||
this.props.dispatch({type: 'trigger/changeChannel', payload: triggerCh});
|
||||
this.props.dispatch({type: 'vertical/changeChannelStatus', payload: channelNumber});
|
||||
|
@ -112,7 +112,7 @@ export class Plumber {
|
||||
}
|
||||
}
|
||||
|
||||
public handleSetchState(s: SetChState) {
|
||||
public handleSetChState(s: SetChState) {
|
||||
let setChArgs: PlumberArgs = {
|
||||
headCheck: () => true,
|
||||
bodyCheck: () => true,
|
||||
|
Loading…
Reference in New Issue
Block a user