mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Edit book: Ensure that multiple edit book windows are grouped in a separate group from viewer windows in the Windows 7 taskbar.
This commit is contained in:
parent
bd9684d142
commit
9ebaeb738c
@ -10,7 +10,7 @@ import sys, os, importlib
|
||||
|
||||
from PyQt4.Qt import QIcon
|
||||
|
||||
from calibre.constants import islinux
|
||||
from calibre.constants import islinux, iswindows
|
||||
from calibre.gui2 import Application, ORG_NAME, APP_UID, setup_gui_option_parser, detach_gui
|
||||
from calibre.ptempfile import reset_base_dir
|
||||
from calibre.utils.config import OptionParser
|
||||
@ -34,6 +34,15 @@ def _run(args, notify=None):
|
||||
os.environ.pop('CALIBRE_WORKER_TEMP_DIR', None)
|
||||
reset_base_dir()
|
||||
|
||||
if iswindows:
|
||||
# Ensure that all ebook editor instances are grouped together in the task
|
||||
# bar
|
||||
import ctypes
|
||||
try:
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('com.calibre-ebook.edit-book')
|
||||
except:
|
||||
pass # Only available on windows 7 and newer
|
||||
|
||||
# The following two lines are needed to prevent circular imports causing
|
||||
# errors during initialization of plugins that use the polish container
|
||||
# infrastructure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user