mirror of https://github.com/zlatinb/muwire
update on new collections
parent
0d85292739
commit
ca9120e864
|
@ -24,6 +24,7 @@ import com.muwire.core.RouterDisconnectedEvent
|
|||
import com.muwire.core.SharedFile
|
||||
import com.muwire.core.collections.CollectionLoadedEvent
|
||||
import com.muwire.core.collections.FileCollection
|
||||
import com.muwire.core.collections.UICollectionCreatedEvent
|
||||
import com.muwire.core.connection.ConnectionAttemptStatus
|
||||
import com.muwire.core.connection.ConnectionEvent
|
||||
import com.muwire.core.connection.DisconnectionEvent
|
||||
|
@ -266,6 +267,7 @@ class MainFrameModel {
|
|||
core.eventBus.register(FeedItemFetchedEvent.class, this)
|
||||
core.eventBus.register(UIFeedConfigurationEvent.class, this)
|
||||
core.eventBus.register(CollectionLoadedEvent.class, this)
|
||||
core.eventBus.register(UICollectionCreatedEvent.class, this)
|
||||
|
||||
core.muOptions.watchedKeywords.each {
|
||||
core.eventBus.publish(new ContentControlEvent(term : it, regex: false, add: true))
|
||||
|
@ -775,4 +777,11 @@ class MainFrameModel {
|
|||
view.collectionsTable.model.fireTableDataChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void onUICollectionCreatedEvent(UICollectionCreatedEvent e) {
|
||||
runInsideUIAsync {
|
||||
localCollections.add(e.collection)
|
||||
view.collectionsTable.model.fireTableDataChanged()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue