mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix inverted conditional
This commit is contained in:
@ -337,12 +337,14 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: () =>
|
enabled: () =>
|
||||||
disabledFeatures.includes('upscaling') ||
|
Boolean(
|
||||||
!isESRGANAvailable ||
|
!disabledFeatures.includes('upscaling') &&
|
||||||
shouldDisableToolbarButtons ||
|
isESRGANAvailable &&
|
||||||
!isConnected ||
|
!shouldDisableToolbarButtons &&
|
||||||
isProcessing ||
|
isConnected &&
|
||||||
!upscalingLevel,
|
!isProcessing &&
|
||||||
|
upscalingLevel
|
||||||
|
),
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
disabledFeatures,
|
disabledFeatures,
|
||||||
@ -366,12 +368,14 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: () =>
|
enabled: () =>
|
||||||
disabledFeatures.includes('faceRestore') ||
|
Boolean(
|
||||||
!isGFPGANAvailable ||
|
!disabledFeatures.includes('faceRestore') &&
|
||||||
shouldDisableToolbarButtons ||
|
isGFPGANAvailable &&
|
||||||
!isConnected ||
|
!shouldDisableToolbarButtons &&
|
||||||
isProcessing ||
|
isConnected &&
|
||||||
!facetoolStrength,
|
!isProcessing &&
|
||||||
|
facetoolStrength
|
||||||
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
[
|
[
|
||||||
|
Reference in New Issue
Block a user