I would like to know how i can switch workspaces like i did pre 2.80
I made an addon which used this code to switch using preset names.
My addon makes it possible to add shortcuts and popup menu to quickly switch screenlayouts or workspaces as they are called now
Using the code which worked i now get this error.
RuntimeError: class SCREEN_OT_set_layout, function execute: incompatible return value , str(, Function.result expected a set, not a NoneType)
No matter how i change the code the output error is always the same. I tried this using info given earlier
bpy.context.window.workspace.screens = bpy.data.workspaces['my_workspace'].screens[self.layoutItems1]