Skip to content

Commit 38ceec2

Browse files
v1.2.2
1 parent 43f7849 commit 38ceec2

File tree

7 files changed

+1807
-4
lines changed

7 files changed

+1807
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
**v1.2.2**
2+
* Added app icon.
3+
14
**v1.2.1**
25
* Expanded range of compatible extract-msg versions.
36
* Fixed bugs that prevented properly viewing properties.

msg-explorer.pyproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"files": ["msg_explorer/guid_viewer.py","msg_explorer/ui/named_properties_viewer.ui","msg_explorer/hex_viewer.py","requirements.txt","msg_explorer/multiple_binary_viewer.py","msg_explorer/ui/main_window.ui","msg_explorer/attachments_browser.py","msg_explorer/ui/stream_viewer.ui","msg_explorer/__init__.py","msg_explorer/msg_details_page.py","msg_explorer/ui/guid_viewer.ui","msg_explorer/ui/loading_screen.ui","msg_explorer/string_viewer.py","msg_explorer/named_properties_viewer.py","msg_explorer/multiple_viewer.py","msg_explorer/ui/multiple_binary_viewer.ui","msg_explorer/utils.py","msg_explorer/ui/msg_tree_viewer.ui","msg_explorer/properties_viewer.py","msg_explorer/main_window.py","msg_explorer/ui/string_viewer.ui","msg_explorer/stream_viewer.py","msg_explorer/ui/multiple_viewer.ui","msg_explorer/ui/properties_viewer.ui","msg_explorer/_recompile.py","msg_explorer/main.py","msg_explorer/ui/hex_viewer.ui","msg_explorer/ui/logger_widget.ui","msg_explorer/font_handler.py","msg_explorer/ui/msg_details_page.ui","main.py","msg_explorer/msg_tree_viewer.py","msg_explorer/ui/unhandled_exception.ui","msg_explorer/ui/__init__.py","msg_explorer/__main__.py","msg_explorer/logger_widget.py","msg_explorer/ui/attachments_browser.ui","msg_explorer/logger.py"]
2+
"files": ["msg_explorer/main.py","msg_explorer/utils.py","msg_explorer/guid_viewer.py","msg_explorer/string_viewer.py","msg_explorer/properties_viewer.py","msg_explorer/multiple_binary_viewer.py","msg_explorer/ui/guid_viewer.ui","msg_explorer/ui/multiple_binary_viewer.ui","msg_explorer/_recompile.py","msg_explorer/multiple_viewer.py","msg_explorer/ui/stream_viewer.ui","msg_explorer/ui/named_properties_viewer.ui","msg_explorer/ui/string_viewer.ui","msg_explorer/msg_details_page.py","msg_explorer/ui/logger_widget.ui","msg_explorer/ui/unhandled_exception.ui","msg_explorer/main_window.py","msg_explorer/__main__.py","msg_explorer/attachments_browser.py","msg_explorer/ui/msg_tree_viewer.ui","msg_explorer/ui/properties_viewer.ui","msg_explorer/ui/__init__.py","msg_explorer/ui/main_window.ui","msg_explorer/logger.py","msg_explorer/ui/attachments_browser.ui","msg_explorer/font_handler.py","msg_explorer/ui/multiple_viewer.ui","msg_explorer/ui/msg_details_page.ui","requirements.txt","msg_explorer/stream_viewer.py","msg_explorer/__init__.py","msg_explorer/logger_widget.py","main.py","msg_explorer/ui/loading_screen.ui","msg_explorer/ui/hex_viewer.ui","msg_explorer/named_properties_viewer.py","msg_explorer/msg_tree_viewer.py","msg_explorer/hex_viewer.py","msg_explorer/app_icons.qrc"]
33
}

msg_explorer/app_icons.py

Lines changed: 1784 additions & 0 deletions
Large diffs are not rendered by default.

msg_explorer/app_icons.qrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<RCC>
2+
<qresource prefix="/">
3+
<file>icon/envelope_1024.png</file>
4+
</qresource>
5+
</RCC>
27.2 KB
Loading

msg_explorer/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from PySide6.QtWidgets import QApplication
55

66

7-
87
def mainRunner():
98
app = QApplication([])
9+
1010
from . import font_handler
1111
font_handler.getFontHandler().registerFont(QApplication.font, QApplication.setFont)
1212

msg_explorer/main_window.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# This Python file uses the following encoding: utf-8
2+
import os
23
import threading
34

45
import extract_msg
56

6-
from PySide6.QtWidgets import QApplication, QFileDialog, QMainWindow, QMessageBox, QWidget
77
from PySide6.QtCore import QEventLoop, Signal, SIGNAL, Slot, SLOT
8+
from PySide6.QtGui import QIcon, QPixmap
9+
from PySide6.QtWidgets import QApplication, QFileDialog, QMainWindow, QMessageBox, QWidget
810

9-
from . import font_handler, hex_viewer, utils
11+
from . import app_icons, font_handler, hex_viewer, utils, __version__
1012
from .logger_widget import LoggerWidget
1113
from .ui.ui_main_window import Ui_MainWindow
1214
from .ui.ui_loading_screen import Ui_LoadingScreen
@@ -65,6 +67,15 @@ def __init__(self, parent = None):
6567

6668
self.__logger = LoggerWidget()
6769

70+
self.mainIcon = QIcon(QPixmap(":/icon/envelope_1024.png"))
71+
self.setWindowIcon(self.mainIcon)
72+
73+
# Attempt to set the actual icon on the taskbar in windows.
74+
if os.name == 'nt':
75+
import ctypes
76+
appid = f'TeamMsgExtractor.MSGExplorer.{__version__}'
77+
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(appid)
78+
6879
def closeEvent(self, event):
6980
"""
7081
Override the default close function to cause all windows to be

0 commit comments

Comments
 (0)