changed refresh buttons to pull from cache

This commit is contained in:
aj 2019-05-22 13:49:52 +01:00
parent e31716db04
commit 410dc9e75a
3 changed files with 3 additions and 7 deletions

View File

@ -124,9 +124,7 @@ public class AlbumBorderPaneController extends FMObjBorderPaneController {
@Override @Override
protected Void call() throws Exception { protected Void call() throws Exception {
Config config = FmFramework.getSessionConfig(); album = FmFramework.getAlbumPool().getNew(album);
album = new FmUserNetwork(config.getValue("api_key"), config.getValue("username")).refresh(album);
Platform.runLater(new Runnable() { Platform.runLater(new Runnable() {
@Override @Override

View File

@ -90,9 +90,7 @@ public class ArtistBorderPaneController extends FMObjBorderPaneController{
@Override @Override
protected Void call() throws Exception { protected Void call() throws Exception {
Config config = FmFramework.getSessionConfig(); artist = FmFramework.getArtistPool().getNew(artist);
artist = new FmUserNetwork(config.getValue("api_key"), config.getValue("username")).refresh(artist);
Platform.runLater(new Runnable() { Platform.runLater(new Runnable() {
@Override @Override

View File

@ -134,7 +134,7 @@ public class TrackBorderPaneController extends FMObjBorderPaneController {
FmUserNetwork net = new FmUserNetwork(config.getValue("api_key"), config.getValue("username")); 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)); track.setScrobbles(net.getTrackScrobbles(track));
Platform.runLater(new Runnable() { Platform.runLater(new Runnable() {