From 6b9bcd001e25fa95ab0d84bc3a8ef47afcbadf61 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Jan 2022 11:12:40 +0530 Subject: [PATCH] ... --- src/calibre/gui2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 82292a62e3..5ad1d7983d 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -165,7 +165,7 @@ class IconResourceManager: q = os.path.join(self.override_icon_path, name) if os.path.exists(q): return QIcon(q) - return QIcon.fromTheme(os.path.splitext(name.replace('/', '__'))[0]) + return QIcon.fromTheme(os.path.splitext(name.replace('\\', '__').replace('/', '__'))[0]) def set_theme(self, is_dark_theme): QIcon.setThemeName(self.dark_theme_name if is_dark_theme else self.light_theme_name)