mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
parity: make image swatches disable when clicking on activated background
This commit is contained in:
@@ -106,6 +106,11 @@ function BackgroundSelector({ selectedType, setSelectedType, isEditMode }: Backg
|
|||||||
};
|
};
|
||||||
|
|
||||||
const selectBackground = (fileId: string): void => {
|
const selectBackground = (fileId: string): void => {
|
||||||
|
if (selectedType == 'background' && selectedBackground == fileId) {
|
||||||
|
selectNoBackground();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
disableTheme();
|
disableTheme();
|
||||||
setSelectedType('background');
|
setSelectedType('background');
|
||||||
setSelectedBackground(fileId);
|
setSelectedBackground(fileId);
|
||||||
|
|||||||
Reference in New Issue
Block a user