Rename JackServerSettingsDialog to AudioDeviceDialog
This commit is contained in:
+7
-7
@@ -91,7 +91,7 @@ enum WarningDialogType {
|
|||||||
Apply,
|
Apply,
|
||||||
Ok,
|
Ok,
|
||||||
};
|
};
|
||||||
interface JackServerSettingsDialogState {
|
interface AudioDeviceDialogState {
|
||||||
latencyText: string;
|
latencyText: string;
|
||||||
jackServerSettings: JackServerSettings;
|
jackServerSettings: JackServerSettings;
|
||||||
jackHostStatus?: JackHostStatus;
|
jackHostStatus?: JackHostStatus;
|
||||||
@@ -117,7 +117,7 @@ const styles = (theme: Theme) =>
|
|||||||
whiteSpace: "nowrap"
|
whiteSpace: "nowrap"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
export interface JackServerSettingsDialogProps extends WithStyles<typeof styles> {
|
export interface AudioDeviceDialogProps extends WithStyles<typeof styles> {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
jackServerSettings: JackServerSettings;
|
jackServerSettings: JackServerSettings;
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
@@ -287,12 +287,12 @@ function isOkEnabled(jackServerSettings: JackServerSettings, alsaDevices?: AlsaD
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const JackServerSettingsDialog = withStyles(
|
const AudioDeviceDialog = withStyles(
|
||||||
class extends ResizeResponsiveComponent<JackServerSettingsDialogProps, JackServerSettingsDialogState> {
|
class extends ResizeResponsiveComponent<AudioDeviceDialogProps, AudioDeviceDialogState> {
|
||||||
|
|
||||||
model: PiPedalModel;
|
model: PiPedalModel;
|
||||||
|
|
||||||
constructor(props: JackServerSettingsDialogProps) {
|
constructor(props: AudioDeviceDialogProps) {
|
||||||
super(props);
|
super(props);
|
||||||
this.model = PiPedalModelFactory.getInstance();
|
this.model = PiPedalModelFactory.getInstance();
|
||||||
|
|
||||||
@@ -456,7 +456,7 @@ const JackServerSettingsDialog = withStyles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
componentDidUpdate(oldProps: JackServerSettingsDialogProps) {
|
componentDidUpdate(oldProps: AudioDeviceDialogProps) {
|
||||||
|
|
||||||
this.updateActive();
|
this.updateActive();
|
||||||
}
|
}
|
||||||
@@ -819,4 +819,4 @@ const JackServerSettingsDialog = withStyles(
|
|||||||
},
|
},
|
||||||
styles);
|
styles);
|
||||||
|
|
||||||
export default JackServerSettingsDialog;
|
export default AudioDeviceDialog;
|
||||||
@@ -40,7 +40,7 @@ import SelectChannelsDialog from './SelectChannelsDialog';
|
|||||||
import SelectMidiChannelsDialog from './SelectMidiChannelsDialog';
|
import SelectMidiChannelsDialog from './SelectMidiChannelsDialog';
|
||||||
import SelectHoverBackground from './SelectHoverBackground';
|
import SelectHoverBackground from './SelectHoverBackground';
|
||||||
import JackServerSettings from './JackServerSettings';
|
import JackServerSettings from './JackServerSettings';
|
||||||
import JackServerSettingsDialog from './JackServerSettingsDialog';
|
import AudioDeviceDialog from './AudioDeviceDialog';
|
||||||
import JackHostStatus from './JackHostStatus';
|
import JackHostStatus from './JackHostStatus';
|
||||||
import WifiConfigSettings from './WifiConfigSettings';
|
import WifiConfigSettings from './WifiConfigSettings';
|
||||||
import WifiDirectConfigSettings from './WifiDirectConfigSettings';
|
import WifiDirectConfigSettings from './WifiDirectConfigSettings';
|
||||||
@@ -711,7 +711,7 @@ const SettingsDialog = withStyles(
|
|||||||
)}
|
)}
|
||||||
{this.state.showJackServerSettingsDialog && (
|
{this.state.showJackServerSettingsDialog && (
|
||||||
|
|
||||||
<JackServerSettingsDialog
|
<AudioDeviceDialog
|
||||||
open={this.state.showJackServerSettingsDialog}
|
open={this.state.showJackServerSettingsDialog}
|
||||||
jackServerSettings={this.state.jackServerSettings}
|
jackServerSettings={this.state.jackServerSettings}
|
||||||
onClose={() => this.setState({ showJackServerSettingsDialog: false })}
|
onClose={() => this.setState({ showJackServerSettingsDialog: false })}
|
||||||
|
|||||||
Reference in New Issue
Block a user