FIX: the sorting of AMS list

JIRA: [STUDIO-14738] [STUDIO-14651]
Change-Id: I6d4b89edc77383be8afacf9823567bc756c8e2ed
(cherry picked from commit 8defa1f50b4b556c6ebaf2ad533ba09ad3f23e38)
This commit is contained in:
xin.zhang
2025-10-28 15:29:58 +08:00
committed by Noisyfox
parent 2234b227c4
commit 8d3da67254
4 changed files with 27 additions and 7 deletions
+3 -1
View File
@@ -39,6 +39,8 @@
#include <wx/simplebook.h>
#include <wx/hashmap.h>
#include "slic3r/GUI/DeviceCore/DevUtil.h"
#define MAPPING_ITEM_INVALID_REMAIN -1
namespace Slic3r { namespace GUI {
@@ -277,7 +279,7 @@ public:
void paintEvent(wxPaintEvent &evt);
void set_parent_item(MaterialItem* item) {m_parent_item = item;};
void set_show_type(ShowType type) { m_show_type = type; };
std::vector<TrayData> parse_ams_mapping(std::map<std::string, DevAms*> amsList);
std::vector<TrayData> parse_ams_mapping(const std::map<std::string, DevAms*, NumericStrCompare>& amsList);
using ResetCallback = std::function<void(const std::string&)>;
void reset_ams_info();