imhex: update to 1.30.1.

This commit is contained in:
classabbyamp 2023-07-01 09:41:06 -04:00
parent 1b1a0e4f95
commit 8e6c7072d1
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
2 changed files with 3 additions and 30 deletions

View File

@ -1,27 +0,0 @@
From f57d4f2f7adb44b97f9696c94d3178e4ccebcd99 Mon Sep 17 00:00:00 2001
From: WerWolv <werwolv98@gmail.com>
Date: Sun, 21 May 2023 18:41:43 +0200
Subject: [PATCH] impr: Manually sort file chooser popup list
---
.../builtin/include/content/popups/popup_file_chooser.hpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/plugins/builtin/include/content/popups/popup_file_chooser.hpp b/plugins/builtin/include/content/popups/popup_file_chooser.hpp
index ce464aeee76d..e52c040c27ea 100644
--- a/plugins/builtin/include/content/popups/popup_file_chooser.hpp
+++ b/plugins/builtin/include/content/popups/popup_file_chooser.hpp
@@ -13,7 +13,12 @@ namespace hex::plugin::builtin {
: hex::Popup<PopupFileChooser>("hex.builtin.common.choose_file"),
m_indices({ }), m_files(files),
m_openCallback(callback),
- m_validExtensions(validExtensions), m_multiple(multiple) { }
+ m_validExtensions(validExtensions), m_multiple(multiple) {
+
+ std::sort(this->m_files.begin(), this->m_files.end(), [](const std::fs::path &a, const std::fs::path &b) {
+ return a.filename() < b.filename();
+ });
+ }
void drawContent() override {
bool doubleClicked = false;

View File

@ -1,6 +1,6 @@
# Template file for 'imhex'
pkgname=imhex
version=1.29.0
version=1.30.1
revision=1
build_wrksrc="ImHex"
build_style=cmake
@ -20,8 +20,8 @@ homepage="https://imhex.werwolv.net/"
changelog="https://github.com/WerWolv/ImHex/releases"
distfiles="https://github.com/WerWolv/ImHex/releases/download/v${version}/Full.Sources.tar.gz>imhex-${version}.tar.gz
https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${version}.tar.gz>imhex-patterns-${version}.tar.gz"
checksum="25a8b250412e5b870871978e58cd5f5c08bd42587122ab7799c59eec31843c46
a237a4fcf565af6b4ad94ec71f50b284bef3af93a13da744092da7e83d7767c0"
checksum="edf164996ba3a960b7b022acb1441aef2960c60e7a46409b01d9ff164cd99e7a
8f38ca5ea73298e104231276026f50d350f350626bcefc11a3935528be34581c"
patch_args="-Np1 -d $build_wrksrc"
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then