Skip to content

Commit

Permalink
fix qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jun 24, 2024
1 parent c01662e commit 5d2b5c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/app/codegen/scene_nim.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ def apply_control_code(self):
if app_import not in self.imports:
self.imports += [app_import]
self.init_apps += [
'scene.controlCodeRender = render_imageApp.init(-1.NodeId, scene.FrameScene, render_imageApp.AppConfig(',
'scene.controlCodeRender = render_imageApp.App(nodeName: "render/image", nodeId: -1.NodeId, scene: scene.FrameScene, frameConfig: scene.frameConfig, appConfig: render_imageApp.AppConfig(',
f' offsetX: {int(control_code.get("offsetX", "0"))},',
f' offsetY: {int(control_code.get("offsetY", "0"))},',
f' placement: "{sanitize_nim_string(control_code.get("placement", "top-left"))}",',
'))',
'scene.controlCodeData = data_qrApp.init(-1.NodeId, scene.FrameScene, data_qrApp.AppConfig(',
'scene.controlCodeData = data_qrApp.App(nodeName: "data/qr", nodeId: -1.NodeId, scene: scene.FrameScene, frameConfig: scene.frameConfig, appConfig: data_qrApp.AppConfig(',
f' backgroundColor: parseHtmlColor("{sanitize_nim_string(control_code.get("backgroundColor", "#000000"))}"),',
f' qrCodeColor: parseHtmlColor("{sanitize_nim_string(control_code.get("qrCodeColor", "#ffffff"))}"),',
f' padding: {int(control_code.get("padding", "1"))},',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/frame/panels/Control/controlLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const controlLogic = kea<controlLogicType>([
[socketLogic.actionTypes.newLog]: ({ log }) => {
try {
const { event, sceneId } = JSON.parse(log.line)
if (event === 'sceneChange') {
if (event === 'render:sceneChange') {
if (sceneId !== values.sceneId) {
actions.currentSceneChanged(sceneId)
actions.sync()
Expand Down

0 comments on commit 5d2b5c7

Please sign in to comment.