changed refresh buttons to pull from cache
This commit is contained in:
parent
e31716db04
commit
410dc9e75a
@ -124,9 +124,7 @@ public class AlbumBorderPaneController extends FMObjBorderPaneController {
|
||||
@Override
|
||||
protected Void call() throws Exception {
|
||||
|
||||
Config config = FmFramework.getSessionConfig();
|
||||
|
||||
album = new FmUserNetwork(config.getValue("api_key"), config.getValue("username")).refresh(album);
|
||||
album = FmFramework.getAlbumPool().getNew(album);
|
||||
|
||||
Platform.runLater(new Runnable() {
|
||||
@Override
|
||||
|
@ -90,9 +90,7 @@ public class ArtistBorderPaneController extends FMObjBorderPaneController{
|
||||
@Override
|
||||
protected Void call() throws Exception {
|
||||
|
||||
Config config = FmFramework.getSessionConfig();
|
||||
|
||||
artist = new FmUserNetwork(config.getValue("api_key"), config.getValue("username")).refresh(artist);
|
||||
artist = FmFramework.getArtistPool().getNew(artist);
|
||||
|
||||
Platform.runLater(new Runnable() {
|
||||
@Override
|
||||
|
@ -134,7 +134,7 @@ public class TrackBorderPaneController extends FMObjBorderPaneController {
|
||||
|
||||
FmUserNetwork net = new FmUserNetwork(config.getValue("api_key"), config.getValue("username"));
|
||||
|
||||
track = net.refresh(track);
|
||||
track = FmFramework.getTrackPool().getNew(track);
|
||||
track.setScrobbles(net.getTrackScrobbles(track));
|
||||
|
||||
Platform.runLater(new Runnable() {
|
||||
|
Loading…
Reference in New Issue
Block a user