mirror of
https://github.com/anas-elgarhy/Ayah-intellij.git
synced 2024-08-15 00:43:43 +00:00
[fix] Fix the initialization issue
This commit is contained in:
parent
48de076872
commit
c91af211de
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,6 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
|
|||
}
|
||||
|
||||
private void setupTheUI() throws IOException {
|
||||
updateAhaDetails();
|
||||
previousButton.setEnabled(ayah.getNumber() != 1 && ayah.getSurah().getNumber() != 1);
|
||||
nextButton.setEnabled(ayah.getNumber() != Constants.AYAHS_COUNT && ayah.getSurah().getNumber() != Constants.SURAS_COUNT);
|
||||
|
||||
|
@ -83,6 +82,8 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
|
|||
|
||||
// Set the default selected item for the editionComboBox
|
||||
editionComboBoxModel.setSelectedItem(new ReadableEdition(ayah.getEdition()));
|
||||
// Set the actual information about the ayah in the UI
|
||||
updateAhaDetails();
|
||||
}
|
||||
|
||||
private void updateAhaDetails() {
|
||||
|
|
Loading…
Reference in a new issue