Add fallback handling for missing icon files

Add graceful fallback behavior when icon image files (refresh.png, settings.png, MSMD32.png) are not found. The application now uses Unicode symbols (⟳, ⚙) as button text alternatives, preventing crashes when running without bundled assets.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Keith Smith
2026-01-15 16:43:03 -07:00
parent 39fc6b0602
commit a830b6b27f
3 changed files with 29 additions and 8 deletions

View File

@@ -25,7 +25,9 @@ class Settings(QWidget):
self.__UserAbort = True
#-----Widget Settings-----
self.setWindowIcon(QIcon('MSMD32.png'))
import os
if os.path.exists('MSMD32.png'):
self.setWindowIcon(QIcon('MSMD32.png'))
self.setWindowTitle('MSMD Settings')
#Remove Maximize and Minimize buttons