Skip to content

Commit

Permalink
fix: add fallback icon for "open archive" button
Browse files Browse the repository at this point in the history
  • Loading branch information
g-fb committed Feb 12, 2022
1 parent ca8cd37 commit 0b20829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/startupwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ StartUpWidget::StartUpWidget(QWidget *parent)
this, &StartUpWidget::openMangaFolderClicked);

auto openMangaArchiveButton = new QPushButton(i18n("Open Manga Archive"), this);
openMangaArchiveButton->setIcon(QIcon::fromTheme("application-x-archive"));
auto fallbackIcon = QIcon::fromTheme("package-x-generic");
openMangaArchiveButton->setIcon(QIcon::fromTheme("application-x-archive", fallbackIcon));
openMangaArchiveButton->setIconSize(QSize(32, 32));
connect(openMangaArchiveButton, &QPushButton::clicked,
this, &StartUpWidget::openMangaArchiveClicked);
Expand Down

0 comments on commit 0b20829

Please sign in to comment.