Skip to content

Commit

Permalink
fix: fit tsc and eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aolsenjazz committed Sep 25, 2024
1 parent 173ca0d commit 057b788
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/main/initialize-input-config-ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ ipcMain.on(
input.applyStub(c);
updatedConfigs.push(input);

console.log('sanity');
MainWindow.sendInputState(deviceId, c.id, input.state);
MainWindow.sendInputConfig(deviceId, c.id, c);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/ipc-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ipcMain.on(HOST.REQUEST, (_e: Event, deviceName: string) => {
ipcMain.on(CONFIG.REQUEST_DEVICE_CONFIG_STUB, (_e: Event, id: string) => {
const p = pp.project;
const conf = p.getDevice(id);
const desc = conf ? conf.stub() : undefined;
const desc = conf ? conf.toDTO() : undefined;

MainWindow.sendConfigStub(id, desc);
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/menu/device-plugin-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function createDevicePluginMenu(deviceId: string) {
const plugin: BasePlugin = new Plugin(m.title, m.description);
dev.plugins.push(plugin.id);
Registry.register(plugin);
wp.MainWindow.sendConfigStub(dev.id, dev.stub());
wp.MainWindow.sendConfigStub(dev.id, dev.toDTO());
},
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/menu/input-plugin-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function createInputPluginMenu(
}
});

wp.MainWindow.sendConfigStub(dev.id, dev.stub());
wp.MainWindow.sendConfigStub(dev.id, dev.toDTO());
}
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/project-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@shared/hardware-config';
import { Project } from '@shared/project';

import { CONFIG, INPUT_CONFIG } from '../ipc-channels';
import { INPUT_CONFIG } from '../ipc-channels';
import { dialogs } from '../dialogs';
import {
ProjectEventEmitter,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { useSelectedDevice } from '@context/selected-device-context';
import { useInputConfig } from '@hooks/use-input-config';
import { useInputState } from '@hooks/use-input-state';
import {
KnobDTO,
KnobState,
} from '@shared/hardware-config/input-config/knob-config';
import { statusStringToNibble } from '@shared/midi-util';
import { KnobDTO } from '@shared/hardware-config/input-config/knob-config';
import { useCallback, useEffect, useState } from 'react';

const { InputConfigService } = window;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react';

import { InputDTO } from '@shared/hardware-config/input-config/base-input-config';

import ControlledInput from '../../../components/ControlledInput';
import ControlledInput from '../../ControlledInput';
import SectionHeader from '../../SectionHeader';

type PropTypes = {
Expand Down

0 comments on commit 057b788

Please sign in to comment.