Skip to content

Commit b7dc432

Browse files
committed
fix polymono
1 parent 5b13a40 commit b7dc432

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/website/js/synthesizer_ui/synthetizer_ui.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
hideControllers,
3-
showControllers
4-
} from "./methods/hide_show_controllers.js";
1+
import { hideControllers, showControllers } from "./methods/hide_show_controllers.js";
52
import { toggleDarkMode } from "./methods/toggle_dark_mode.js";
63
import { setEventListeners } from "./methods/set_event_listeners.js";
74
import { keybinds } from "../utils/keybinds.js";
@@ -25,14 +22,7 @@ import type { Sequencer } from "spessasynth_lib";
2522
import type { LocaleManager } from "../locale/locale_manager.ts";
2623
import type { MIDIKeyboard } from "../midi_keyboard/midi_keyboard.ts";
2724
import { Meter } from "./methods/synthui_meter.ts";
28-
import {
29-
getDrumsSvg,
30-
getEmptyMicSvg,
31-
getMicSvg,
32-
getMuteSvg,
33-
getNoteSvg,
34-
getVolumeSvg
35-
} from "../utils/icons.ts";
25+
import { getDrumsSvg, getEmptyMicSvg, getMicSvg, getMuteSvg, getNoteSvg, getVolumeSvg } from "../utils/icons.ts";
3626
import { showAdvancedConfiguration } from "./methods/advanced_configuration.ts";
3727
import { Selector } from "./methods/synthui_selector.ts";
3828
import type { Synthesizer } from "../utils/synthesizer.ts";
@@ -1305,7 +1295,7 @@ export class SynthetizerUI {
13051295
[channelNumber + 1]
13061296
);
13071297
polyMonoButton.classList.add("controller_element", "mute_button");
1308-
polyMonoButton.setAttribute("isPoly", "false");
1298+
polyMonoButton.setAttribute("isPoly", "true");
13091299
polyMonoButton.addEventListener("click", () => {
13101300
this.synth.lockController(
13111301
channelNumber,

0 commit comments

Comments
 (0)