@@ -94,13 +94,14 @@ private void initComponents() {
9494 JButton apply = new JButton ("Save" );
9595 apply .addActionListener (e -> {
9696 for (ListFrame .LoadedSong song : this .songs ) {
97- this .resamplingTab .apply (song .getSong (), song .getSong ().getView ());
98- this .instrumentsTab .apply (song .getSong (), song .getSong ().getView ());
97+ SongView <?> view = song .getSong ().getView ();
98+ this .resamplingTab .apply (song .getSong (), view );
99+ this .instrumentsTab .apply (song .getSong (), view );
99100 if (this .customInstrumentsTab != null ) {
100- this .customInstrumentsTab .apply (song .getSong (), song . getSong (). getView () );
101+ this .customInstrumentsTab .apply (song .getSong (), view );
101102 }
102- this .notesTab .apply (song .getSong (), song . getSong (). getView () );
103- this .metadataTab .apply (song .getSong (), song . getSong (). getView () );
103+ this .notesTab .apply (song .getSong (), view );
104+ this .metadataTab .apply (song .getSong (), view );
104105 }
105106 JOptionPane .showMessageDialog (this , "Saved all changes" , "Saved" , JOptionPane .INFORMATION_MESSAGE );
106107 for (ListFrame .LoadedSong song : this .songs ) this .songRefreshConsumer .accept (song );
@@ -113,7 +114,7 @@ private void initComponents() {
113114 this .resamplingTab .apply (song .getSong (), view );
114115 this .instrumentsTab .apply (song .getSong (), view );
115116 if (this .customInstrumentsTab != null ) {
116- this .customInstrumentsTab .apply (null , view );
117+ this .customInstrumentsTab .apply (song . getSong () , view );
117118 }
118119 this .notesTab .apply (song .getSong (), view );
119120 SongPlayerFrame .open (song , view );
0 commit comments