Browse Source

use the original method to focus

tags/0.7.12^0
Randy Lai 3 years ago
parent
commit
43a86bf786
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      project_manager.py

+ 6
- 3
project_manager.py View File

@@ -18,11 +18,14 @@ def subl(*args):
subprocess.Popen([executable_path] + list(args))

def on_activated():
if sublime.platform() == 'windows':
# refocus sublime text window
subprocess.Popen([executable_path, "--command", ""])
window = sublime.active_window()
view = window.active_view()

if sublime.platform() == 'windows':
# fix focus on windows
window.run_command('focus_neighboring_group')
window.focus_view(view)

sublime_plugin.on_activated(view.id())
sublime_plugin.on_activated_async(view.id())



Loading…
Cancel
Save