ENH:fixed incorrect prompt for glow material

jira:[STUDIO-10574]

Change-Id: I4475eb527ffbc8cc6d72405445552971d062b45e
(cherry picked from commit 01918affdfb69879f86ca47fe2f1ab8af5e1311b)
This commit is contained in:
tao wang
2025-02-21 16:15:53 +08:00
committed by Noisyfox
parent bab0a9cb92
commit 1241b66dfc
7 changed files with 72 additions and 41 deletions

View File

@@ -55,7 +55,7 @@ struct FilamentInfo
std::string slot_id;
public:
int get_amd_id() const
int get_ams_id() const
{
if (ams_id.empty()) { return -1; };
@@ -68,6 +68,17 @@ public:
return -1;
};
int get_slot_id() const
{
if (slot_id.empty()) { return -1; };
try {
return stoi(slot_id);
} catch (...) {};
return -1;
};
/*copied from AmsTray::get_display_filament_type()*/
std::string get_display_filament_type()
{