From d1ed88833555363d91b119543b9620c410f84a52 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 10 Mar 2022 03:33:08 +0000 Subject: [PATCH] move the chat favorites under a chat directory --- gui/src/main/groovy/com/muwire/gui/chat/ChatFavorites.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/src/main/groovy/com/muwire/gui/chat/ChatFavorites.groovy b/gui/src/main/groovy/com/muwire/gui/chat/ChatFavorites.groovy index ba1c2e7d..82484944 100644 --- a/gui/src/main/groovy/com/muwire/gui/chat/ChatFavorites.groovy +++ b/gui/src/main/groovy/com/muwire/gui/chat/ChatFavorites.groovy @@ -14,7 +14,10 @@ class ChatFavorites { ChatFavorites(GriffonApplication application) { application.addPropertyChangeListener("core", { - favoritesFile = new File(it.getNewValue().home, "chat.json") + File home = it.getNewValue().home + File chat = new File(home, "chat") + chat.mkdirs() + favoritesFile = new File(chat, "favorites.json") load() controller = application.mvcGroupManager.findGroup("MainFrame").getController() favorites.stream().filter({it.autoConnect}).forEach {