Skip to content

Commit

Permalink
Only kill existing instance if a new one will actually be created
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbocanegra committed Apr 27, 2022
1 parent b154907 commit 865262f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kde-material-you-colors
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import argparse
import utils
from schemeconfigs import ThemeConfig
if __name__ == '__main__':
#kill existing instance if found
utils.kill_existing()
# Make sure the schemes path exists
if not os.path.exists(utils.USER_SCHEMES_PATH):
os.makedirs(utils.USER_SCHEMES_PATH)
Expand Down Expand Up @@ -54,6 +52,8 @@ if __name__ == '__main__':
args = parser.parse_args()
# Get config from file
config = utils.Configs(args)
#kill existing instance if found
utils.kill_existing()
options_old = config.options
logging.debug(f"Config: {options_old}")
icons_old = [options_old['iconslight'], options_old['iconsdark']]
Expand Down

0 comments on commit 865262f

Please # to comment.