Skip to content

Commit 09d1e19

Browse files
Mary Hipphipsterusername
authored andcommitted
show warning for maxUpscaleDimension if model tab is disabled
1 parent 17ff819 commit 09d1e19

File tree

1 file changed

+5
-1
lines changed
  • invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion

1 file changed

+5
-1
lines changed

invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleWarning.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ export const UpscaleWarning = () => {
5757
$installModelsTab.set(3);
5858
}, [dispatch]);
5959

60-
if ((!modelWarnings.length && !otherWarnings.length) || isLoading || !shouldShowButton) {
60+
if (modelWarnings.length && !shouldShowButton) {
61+
return null;
62+
}
63+
64+
if ((!modelWarnings.length && !otherWarnings.length) || isLoading) {
6165
return null;
6266
}
6367

0 commit comments

Comments
 (0)