mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-07 10:07:38 +00:00
fix: keep orphaned cloud plugins runnable (#14859)
* fix: keep orphaned cloud plugins runnable * fix: tests
This commit is contained in:
@@ -20,6 +20,7 @@ struct CloudPluginState
|
||||
bool update_available = false; // Cloud version > the local package version.
|
||||
bool unauthorized = false; // Cloud plugin is valid locally, but cannot receive cloud updates.
|
||||
bool is_mine = false; // Plugin was created (and uploaded) by the current user.
|
||||
bool orphaned = false; // Cloud identity remains locally, but the plugin is no longer subscribed/available.
|
||||
};
|
||||
|
||||
enum class PluginUpdateStatus
|
||||
@@ -106,6 +107,8 @@ struct PluginDescriptor
|
||||
{
|
||||
if (!cloud.has_value())
|
||||
return PluginUpdateStatus::Normal;
|
||||
if (cloud->orphaned)
|
||||
return PluginUpdateStatus::Normal;
|
||||
if (cloud->unauthorized)
|
||||
return PluginUpdateStatus::Unauthorized;
|
||||
if (cloud->update_available)
|
||||
|
||||
Reference in New Issue
Block a user