mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: improve theme import modal close behavior
This commit is contained in:
parent
2246775046
commit
e8d5c621ea
1 changed files with 4 additions and 2 deletions
|
@ -58,7 +58,6 @@ export function SettingsAppearance({
|
|||
const onThemeImported = useCallback(() => {
|
||||
setIsImportThemeModalVisible(false);
|
||||
loadThemes();
|
||||
clearTheme();
|
||||
}, [clearTheme, loadThemes]);
|
||||
|
||||
return (
|
||||
|
@ -88,7 +87,10 @@ export function SettingsAppearance({
|
|||
{importTheme && (
|
||||
<ImportThemeModal
|
||||
visible={isImportThemeModalVisible}
|
||||
onClose={() => setIsImportThemeModalVisible(false)}
|
||||
onClose={() => {
|
||||
setIsImportThemeModalVisible(false);
|
||||
clearTheme();
|
||||
}}
|
||||
onThemeImported={onThemeImported}
|
||||
themeName={importTheme.theme}
|
||||
authorId={importTheme.authorId}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue