mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-01 07:33:33 +01: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
1 changed files with 10 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
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…
Reference in a new issue