Has stuff wait for the database to load.
A lot of stuff (CLI in particular) isn't particurally useful until the database loads. However, we still want a GUI, so we just use syncronization for stuff.
This commit is contained in:
@@ -102,7 +102,7 @@ public class Interface extends JFrame implements SongDisplayListener, ComponentL
|
||||
this.constructWindow();
|
||||
this.setFocusManager();
|
||||
|
||||
this.updateSongs(SongProvider.INSTANCE.getSongs());
|
||||
// this.updateSongs(SongProvider.INSTANCE.getSongs());
|
||||
}
|
||||
|
||||
protected void initActions()
|
||||
@@ -575,7 +575,6 @@ public class Interface extends JFrame implements SongDisplayListener, ComponentL
|
||||
{
|
||||
this.songList.listAlbums(songs);
|
||||
this.centerView.setViewportView(this.songList);
|
||||
this.songList.revalidate();
|
||||
this.centerView.revalidate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user