Skip to content

[BUG] Toggle Workspace is throwing error after upgrade #237

@aniketgm

Description

@aniketgm

Describe the bug 🐛

I was on version 3.1.0. I just now upgraded dooit today to version 3.2.2. I have a custom keymap "w" set for toggling workspace view,

@subscribe(Startup)
def setup_keys(api: DooitAPI, _):
    api.keys.set("w", api.no_op)

    # Custom bindings
    api.keys.set("q", api.quit)
    api.keys.set("t", api.toggle_complete)
    api.keys.set("w", toggle_workspaces(api))

Before the upgrade, the workspace view would toggle fine. However, after the upgrade, it doesn't toggle and it's throwing an error, when I press w. Screenshot below.
I tried disabling w key before setting it, (as mentioned in config above). Not sure if it was set default for something. However, I still see the error.

To Reproduce 🐣

Steps to reproduce the behavior:

  1. Open dooit
  2. Press w
  3. See error:

Image

Expected behavior 🤔

I've setup a keymap for toggling workspace view, mentioned above, which should toggle workspace view.

Screenshots 🧐

Provided above

Desktop (please complete the following information): 🤖

  • OS: Windows 11
  • Version: Build 22631

Additional context 📝
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions