mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
when the stealth mode is enabled, log out cloud service and hide sideboard (#13531)
* when the stealth mode is enabled, log out cloud service and hide sideboard * update tooltip
This commit is contained in:
@@ -71,6 +71,7 @@ body
|
||||
|
||||
#LeftBoard
|
||||
{
|
||||
display: none; /* shown by cloud_providers_info from backend */
|
||||
border-right-width: 1px;
|
||||
border-right-style: solid;
|
||||
width:262px;
|
||||
|
||||
@@ -103,11 +103,20 @@ function HandleStudio( pVal )
|
||||
|
||||
GotoMenu(strName);
|
||||
} else if (strCmd == "cloud_providers_info") {
|
||||
if (pVal["data"]["providers"] && pVal["data"]["providers"].indexOf("bbl") >= 0) {
|
||||
var providers = (pVal["data"] && pVal["data"]["providers"]) || [];
|
||||
|
||||
if (providers.indexOf("bbl") >= 0) {
|
||||
$("#BambuCloudSection").show();
|
||||
} else {
|
||||
SetBambuUserOffline();
|
||||
$("#BambuCloudSection").hide();
|
||||
}
|
||||
|
||||
if (providers.indexOf("orca") >= 0) {
|
||||
$("#LeftBoard").show();
|
||||
} else {
|
||||
$("#LeftBoard").hide();
|
||||
}
|
||||
} else if (strCmd == "network_plugin_installtip") {
|
||||
let nShow = pVal["show"] * 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user