Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back to active_window if view.window() is None
Fun discovery: if you switch tabs while a command is working, self.view.window() is None. (Admittedly this is a consequence of my deciding to do async command processing... but, hey, got to live with that now.) I did try tracking the window used at the start of the command and using it instead of view.window() later, but that results panels on a non-visible window, which is especially useless in the case of the quick panel. So, this is not necessarily ideal, but it does work.
- Loading branch information
Showing
1 changed file
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters