Skip to content

Commit

Permalink
修复在 Windows 上无法获取当前活动窗口标题的 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
x1ao4 committed Jul 8, 2024
1 parent a7bae7b commit e091a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/desktop-skipper-for-plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def initialize_settings():
# 检查当前活动窗口是否为 Plex
def is_plex_active():
try:
active_window_title = gw.getActiveWindow().title()
return active_window_title in ['Plex', 'Plex ', 'Plex Plex']
active_window_title = gw.getActiveWindow().title
return active_window_title == 'Plex'
except Exception:
return False

Expand Down

0 comments on commit e091a8f

Please sign in to comment.