Browse Source

Fixed bug in virtual printer

maziggy 4 months ago
parent
commit
505bad1f80

+ 4 - 4
frontend/src/components/VirtualPrinterSettings.tsx

@@ -179,7 +179,7 @@ export function VirtualPrinterSettings() {
               <select
               <select
                 value={localModel}
                 value={localModel}
                 onChange={(e) => handleModelChange(e.target.value)}
                 onChange={(e) => handleModelChange(e.target.value)}
-                disabled={pendingAction === 'model' || (localEnabled && isRunning)}
+                disabled={pendingAction === 'model'}
                 className="w-full bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-md px-3 py-2 text-white appearance-none cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed pr-10"
                 className="w-full bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-md px-3 py-2 text-white appearance-none cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed pr-10"
               >
               >
                 {modelsData?.models && Object.entries(modelsData.models)
                 {modelsData?.models && Object.entries(modelsData.models)
@@ -193,9 +193,9 @@ export function VirtualPrinterSettings() {
               <ChevronDown className="absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-bambu-gray pointer-events-none" />
               <ChevronDown className="absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-bambu-gray pointer-events-none" />
             </div>
             </div>
             {localEnabled && isRunning && (
             {localEnabled && isRunning && (
-              <p className="text-xs text-yellow-400 mt-2">
-                <AlertTriangle className="w-3 h-3 inline mr-1" />
-                Disable the virtual printer to change the model
+              <p className="text-xs text-bambu-gray mt-2">
+                <Info className="w-3 h-3 inline mr-1" />
+                Changing the model will restart the virtual printer
               </p>
               </p>
             )}
             )}
           </div>
           </div>

File diff suppressed because it is too large
+ 0 - 0
static/assets/index-BaxJ1N11.js


+ 1 - 1
static/index.html

@@ -23,7 +23,7 @@
 
 
     <!-- Splash screens for iOS -->
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-Cq6n_p-E.js"></script>
+    <script type="module" crossorigin src="/assets/index-BaxJ1N11.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-Ds1sabci.css">
     <link rel="stylesheet" crossorigin href="/assets/index-Ds1sabci.css">
   </head>
   </head>
   <body>
   <body>

Some files were not shown because too many files changed in this diff