mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34: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 => {
|
||||
if (selectedType == 'background' && selectedBackground == fileId) {
|
||||
selectNoBackground();
|
||||
return;
|
||||
}
|
||||
|
||||
disableTheme();
|
||||
setSelectedType('background');
|
||||
setSelectedBackground(fileId);
|
||||
|
||||
Reference in New Issue
Block a user