Merge branch 'main' into rerdavies/issue21
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"socket_server_port": 8080,
|
"socket_server_port": 80,
|
||||||
"socket_server_address": "*",
|
"socket_server_address": "*",
|
||||||
|
|
||||||
"max_upload_size": 1048576,
|
"max_upload_size": 1048576,
|
||||||
|
|||||||
+17
-3
@@ -114,11 +114,17 @@ export const MainPage =
|
|||||||
constructor(props: MainProps) {
|
constructor(props: MainProps) {
|
||||||
super(props);
|
super(props);
|
||||||
this.model = PiPedalModelFactory.getInstance();
|
this.model = PiPedalModelFactory.getInstance();
|
||||||
|
let pedalboard = this.model.pedalBoard.get();
|
||||||
|
let selectedPedal = -1;
|
||||||
|
if (pedalboard.items.length !== 0)
|
||||||
|
{
|
||||||
|
selectedPedal = pedalboard.items[0].instanceId;
|
||||||
|
}
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
selectedPedal: -1,
|
selectedPedal: selectedPedal,
|
||||||
loadDialogOpen: false,
|
loadDialogOpen: false,
|
||||||
pedalBoard: this.model.pedalBoard.get(),
|
pedalBoard: pedalboard,
|
||||||
addMenuAnchorEl: null,
|
addMenuAnchorEl: null,
|
||||||
splitControlBar: this.windowSize.width < SPLIT_CONTROLBAR_THRESHHOLD,
|
splitControlBar: this.windowSize.width < SPLIT_CONTROLBAR_THRESHHOLD,
|
||||||
horizontalScrollLayout: this.windowSize.height < HORIZONTAL_CONTROL_SCROLL_HEIGHT_BREAK,
|
horizontalScrollLayout: this.windowSize.height < HORIZONTAL_CONTROL_SCROLL_HEIGHT_BREAK,
|
||||||
@@ -188,7 +194,15 @@ export const MainPage =
|
|||||||
this.model.loadPluginPreset(instanceId, presetInstanceId);
|
this.model.loadPluginPreset(instanceId, presetInstanceId);
|
||||||
}
|
}
|
||||||
onPedalBoardChanged(value: PedalBoard) {
|
onPedalBoardChanged(value: PedalBoard) {
|
||||||
this.setState({ pedalBoard: value });
|
let selectedItem = -1;
|
||||||
|
if (value.items.length !== 0)
|
||||||
|
{
|
||||||
|
selectedItem = value.items[0].instanceId;
|
||||||
|
}
|
||||||
|
this.setState({
|
||||||
|
pedalBoard: value,
|
||||||
|
selectedPedal: selectedItem
|
||||||
|
});
|
||||||
}
|
}
|
||||||
onDeletePedal(instanceId: number): void {
|
onDeletePedal(instanceId: number): void {
|
||||||
let result = this.model.deletePedalBoardPedal(instanceId);
|
let result = this.model.deletePedalBoardPedal(instanceId);
|
||||||
|
|||||||
+1
-2
@@ -351,7 +351,6 @@ void InstallJackService()
|
|||||||
// lock account for login.
|
// lock account for login.
|
||||||
silentSysExec("passwd -l " JACK_SERVICE_ACCOUNT_NAME);
|
silentSysExec("passwd -l " JACK_SERVICE_ACCOUNT_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to audio groups.
|
// Add to audio groups.
|
||||||
// sysExec(USERMOD_BIN " -a -G " JACK_SERVICE_GROUP_NAME " " JACK_SERVICE_ACCOUNT_NAME);
|
// sysExec(USERMOD_BIN " -a -G " JACK_SERVICE_GROUP_NAME " " JACK_SERVICE_ACCOUNT_NAME);
|
||||||
sysExec(USERMOD_BIN " -a -G" AUDIO_SERVICE_GROUP_NAME " " JACK_SERVICE_ACCOUNT_NAME);
|
sysExec(USERMOD_BIN " -a -G" AUDIO_SERVICE_GROUP_NAME " " JACK_SERVICE_ACCOUNT_NAME);
|
||||||
@@ -449,7 +448,7 @@ void Install(const std::filesystem::path &programPrefix, const std::string endpo
|
|||||||
|
|
||||||
if (!userExists(SERVICE_ACCOUNT_NAME))
|
if (!userExists(SERVICE_ACCOUNT_NAME))
|
||||||
{
|
{
|
||||||
if (sysExec(USERADD_BIN " " SERVICE_ACCOUNT_NAME " -g " SERVICE_GROUP_NAME " -m -N -r") != EXIT_SUCCESS)
|
if (sysExec(USERADD_BIN " " SERVICE_ACCOUNT_NAME " -g " SERVICE_GROUP_NAME " -m --home /var/pipedal/home -N -r") != EXIT_SUCCESS)
|
||||||
{
|
{
|
||||||
// throw PiPedalException("Failed to create service account.");
|
// throw PiPedalException("Failed to create service account.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user