mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 19:01:02 +00:00
fix: use ORCA_CLOUD_PROVIDER instead of hardcoded string
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
#include "DevManager.h"
|
#include "DevManager.h"
|
||||||
|
#include "CloudProvider.hpp"
|
||||||
#include "DevUtil.h"
|
#include "DevUtil.h"
|
||||||
|
|
||||||
// TODO: remove this include
|
// TODO: remove this include
|
||||||
@@ -911,7 +912,7 @@ namespace Slic3r
|
|||||||
// Orca cloud printers are only ever delivered through this REST
|
// Orca cloud printers are only ever delivered through this REST
|
||||||
// account list; tag them so DeviceManager's cloud/lan branches
|
// account list; tag them so DeviceManager's cloud/lan branches
|
||||||
// (subscribe + deselect in set_selected_machine) treat them right.
|
// (subscribe + deselect in set_selected_machine) treat them right.
|
||||||
if (provider == "orca")
|
if (provider == ORCA_CLOUD_PROVIDER)
|
||||||
obj->dev_connection_type = "cloud";
|
obj->dev_connection_type = "cloud";
|
||||||
|
|
||||||
if (!elem["dev_id"].is_null())
|
if (!elem["dev_id"].is_null())
|
||||||
|
|||||||
Reference in New Issue
Block a user