Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] tauri-port: Callbacks not working #101

Open
LucasOe opened this issue Jul 15, 2023 · 0 comments
Open

[BUG] tauri-port: Callbacks not working #101

LucasOe opened this issue Jul 15, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LucasOe
Copy link

LucasOe commented Jul 15, 2023

Expected Behavior

A widget with the following config should open the explorer when clicked on:

test:
  kind: CustomWidget
  label: "Test Widget"
  callbacks:
    on_left: { exec: { cmd: "cmd.exe", args: ["/c", "explorer"] } }

The toggle_label callback works as intended, but I can't open the json_viewer, calender, nor can I execute commands.

Current Behavior

Callbacks on_left and on_right in a custom widget do nothing. For some reason right clicking on the active program opens a browser tab as intended, other left and right click interactions do nothing. I can't open the calendar or json viewer.

Steps to Reproduce

The issue is reproducible with the default config or the custom widget above.

Context (Environment)

I'm running my own build of the tauri-port without any modifications. Using Windows 10 22H2.

The log file shows the following errors on left click:

00:20:19 [WARN] RedrawEventsCleared emitted without explicit MainEventsCleared
00:21:10 [WARN] NewEvents emitted without explicit RedrawEventsCleared
@LucasOe LucasOe added the bug Something isn't working label Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants