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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user