diff --git a/gui/__main__.py b/gui/__main__.py index 59d3422..00fe690 100644 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -1395,8 +1395,6 @@ class MenuPage(Page): new_profile['browser'] = 'unknown browser' new_profile['browser_supported'] = False - - resolution = profile.resolution if hasattr(profile, 'resolution') else 'None' new_profile['dimentions'] = resolution @@ -1539,6 +1537,13 @@ class MenuPage(Page): if pixmap.isNull(): pixmap = QPixmap(50, 50) pixmap.fill(QtGui.QColor(200, 200, 200)) + + if label_name == 'browser' and not value.get('browser_supported', True) and value.get('browser') != 'unknown browser': + warning_pixmap = QPixmap(os.path.join(self.btn_path, 'warning.png')) + painter = QPainter(pixmap) + painter.drawPixmap(pixmap.width() - 22, pixmap.height() - 21, warning_pixmap) + painter.end() + child_label.setPixmap(pixmap) child_label.show() diff --git a/gui/resources/images/warning.png b/gui/resources/images/warning.png new file mode 100644 index 0000000..5bd92ac Binary files /dev/null and b/gui/resources/images/warning.png differ