Merge pull request #176 from Snapmaker/dev_2.3.0_alves

fix linux build failed
This commit is contained in:
Alves
2026-03-06 09:50:28 +08:00
committed by GitHub
3 changed files with 5 additions and 8 deletions

View File

@@ -38,9 +38,9 @@
<color type="primary" scheme_preference="light">#009688</color>
</branding>
<releases>
<release version="2.2.1" date="2025-12-26">
<release version="2.2.4" date="2025-12-26">
<description>
<p>Version 2.2.1 release with improvements and bug fixes.</p>
<p>Version 2.2.4 release with improvements and bug fixes.</p>
</description>
</release>
</releases>

View File

@@ -104,12 +104,6 @@ modules:
url: https://github.com/SoftFever/Orca-deps-wxWidgets
branch: master
path: ../
- type: file
path: patches/0001-Enable-using-a-dark-theme-when-Gnome-dark-style-is-s.patch
dest-filename: wxwidgets-dark-theme.patch
- type: shell
commands:
- patch -p1 < wxwidgets-dark-theme.patch
cleanup:
- "*.la"
- "*.a"

View File

@@ -554,6 +554,9 @@ void ObjectDataViewModel::UpdateBitmapForNode(ObjectDataViewModelNode *node)
scaled_bitmap_name += std::to_string(vol_type);
scaled_bitmap_name += (wxGetApp().dark_mode() ? "-dm" : "-lm");
if (!m_bitmap_cache)
return;
wxBitmap* bmp = m_bitmap_cache->find(scaled_bitmap_name);
if (bmp == nullptr) {
std::vector<wxBitmap> bmps;