mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-03 08:12:07 +00:00
Sort network plug-in versions newest first and mark only the loaded build
Discovered builds were inserted positionally behind the whitelist entry they anchored to, so an OTA-installed 02.08.01.53 listed below 02.08.01.52. The list is now built by appending and sorting once, which also drops the per-entry insertion scans. "(installed)" tested whether the library was present on disk, so it marked every version ever selected - switching leaves the previous library in place. The flag is now is_loaded, resolved against the plug-in actually loaded, and the two combo populators share one label helper.
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
// Dropdown label for one network plug-in version: tree glyph for a dev build, then
|
||||
// "(Latest)" for the highest listed version and "(installed)" for the build currently
|
||||
// loaded. Shared by the Preferences selector and the download dialog so both stay
|
||||
// consistent.
|
||||
wxString network_version_label(const NetworkLibraryVersionInfo& ver);
|
||||
|
||||
class NetworkPluginDownloadDialog : public DPIDialog
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user