mirror of https://github.com/zlatinb/muwire
move the chat favorites under a chat directory
parent
c14dc7b80e
commit
d1ed888335
|
@ -14,7 +14,10 @@ class ChatFavorites {
|
||||||
|
|
||||||
ChatFavorites(GriffonApplication application) {
|
ChatFavorites(GriffonApplication application) {
|
||||||
application.addPropertyChangeListener("core", {
|
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()
|
load()
|
||||||
controller = application.mvcGroupManager.findGroup("MainFrame").getController()
|
controller = application.mvcGroupManager.findGroup("MainFrame").getController()
|
||||||
favorites.stream().filter({it.autoConnect}).forEach {
|
favorites.stream().filter({it.autoConnect}).forEach {
|
||||||
|
|
Loading…
Reference in New Issue