Skip to content

Commit

Permalink
Set fallback icon to support more iconsets (lxqt#1985)
Browse files Browse the repository at this point in the history
* Set fallback icon to support more iconsets

* Update desktop-preferences.ui
  • Loading branch information
isf63 authored Dec 10, 2024
1 parent 6946ff5 commit 3db41ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pcmanfm/desktop-preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,6 @@ are left clicked, even when it is not the default file manager.</string>
<property name="text">
<string>Network</string>
</property>
<property name="icon">
<iconset theme="folder-network">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
</layout>
Expand Down
3 changes: 3 additions & 0 deletions pcmanfm/desktoppreferencesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ DesktopPreferencesDialog::DesktopPreferencesDialog(QWidget* parent, Qt::WindowFl
ui.computerBox->setChecked(ds.contains(QLatin1String("Computer")));
ui.networkBox->setChecked(ds.contains(QLatin1String("Network")));

// set fallback icon here (cannot be done in .ui)
ui.networkBox->setIcon(QIcon::fromTheme(QStringLiteral("network"), QIcon::fromTheme(QStringLiteral("folder-network"))));

connect(ui.buttonBox->button(QDialogButtonBox::Apply), &QPushButton::clicked,
this, &DesktopPreferencesDialog::onApplyClicked);

Expand Down

0 comments on commit 3db41ed

Please sign in to comment.