The fix is pretty small, as it changes getMainWindow to getLastSelectedWindow. Although this works, it's only a temporary solution. Ideally, CommandContext would have an optional split, however this should be done when refactoring the command controller.
The fix is pretty small, as it changes
getMainWindow
togetLastSelectedWindow
. Although this works, it's only a temporary solution. Ideally,CommandContext
would have an optionalsplit
, however this should be done when refactoring the command controller.Fixes #5488.