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(() => {
|
const onThemeImported = useCallback(() => {
|
||||||
setIsImportThemeModalVisible(false);
|
setIsImportThemeModalVisible(false);
|
||||||
loadThemes();
|
loadThemes();
|
||||||
clearTheme();
|
|
||||||
}, [clearTheme, loadThemes]);
|
}, [clearTheme, loadThemes]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -88,7 +87,10 @@ export function SettingsAppearance({
|
||||||
{importTheme && (
|
{importTheme && (
|
||||||
<ImportThemeModal
|
<ImportThemeModal
|
||||||
visible={isImportThemeModalVisible}
|
visible={isImportThemeModalVisible}
|
||||||
onClose={() => setIsImportThemeModalVisible(false)}
|
onClose={() => {
|
||||||
|
setIsImportThemeModalVisible(false);
|
||||||
|
clearTheme();
|
||||||
|
}}
|
||||||
onThemeImported={onThemeImported}
|
onThemeImported={onThemeImported}
|
||||||
themeName={importTheme.theme}
|
themeName={importTheme.theme}
|
||||||
authorId={importTheme.authorId}
|
authorId={importTheme.authorId}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue