diff --git a/pokemonterminal/terminal/adapters/windowsterminal.py b/pokemonterminal/terminal/adapters/windowsterminal.py index 4784ff4..4fffce2 100644 --- a/pokemonterminal/terminal/adapters/windowsterminal.py +++ b/pokemonterminal/terminal/adapters/windowsterminal.py @@ -23,7 +23,7 @@ class WindowsTerminalProvider(_TProv): # update defaults profile profile = profiles['defaults'] - if (path is None): + if path is None and 'backgroundImage' in profile: del profile['backgroundImage'] else: profile['backgroundImage'] = path @@ -57,4 +57,4 @@ class WindowsTerminalProvider(_TProv): WindowsTerminalProvider.set_background_image(None) def __str__(): - return "Windows Terminal" \ No newline at end of file + return "Windows Terminal"