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
|
@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
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user