mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
fix: improve theme import modal close behavior
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user