|
@@ -24,6 +24,7 @@ package com.dmdirc.addons.ui_swing.dialogs.about;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.addons.ui_swing.UIUtilities;
|
26
|
26
|
import com.dmdirc.addons.ui_swing.components.TreeScroller;
|
|
27
|
+import com.dmdirc.config.IdentityManager;
|
27
|
28
|
import com.dmdirc.plugins.PluginInfo;
|
28
|
29
|
|
29
|
30
|
import java.awt.Font;
|
|
@@ -147,13 +148,15 @@ public final class LicencesPanel extends JPanel implements TreeSelectionListener
|
147
|
148
|
licence.setText(((Licence) userObject).getBody());
|
148
|
149
|
} else if (userObject instanceof PluginInfo) {
|
149
|
150
|
final PluginInfo pi = (PluginInfo) userObject;
|
150
|
|
- licence.setText("Name: " + pi.getNiceName() + "<br>"
|
151
|
|
- + "Description: " + pi.getDescription() + "<br>"
|
152
|
|
- + "Author: " + pi.getAuthor() + "<br>"
|
153
|
|
- + "Version: " + pi.getFriendlyVersion());
|
|
151
|
+ licence.setText("<b>Name:</b> " + pi.getNiceName() + "<br>"
|
|
152
|
+ + "<b>Version:</b> " + pi.getFriendlyVersion() + "<br>"
|
|
153
|
+ + "<b>Author:</b> " + pi.getAuthor() + "<br>"
|
|
154
|
+ + "<b>Description:</b> " + pi.getDescription() + "<br>");
|
154
|
155
|
} else {
|
155
|
|
- licence.setText("Name: DMDirc<br>"
|
156
|
|
- + "Desciption: The intelligent IRC client");
|
|
156
|
+ licence.setText("<b>Name:</b> DMDirc<br>"
|
|
157
|
+ + "<b>Version:</b> " + IdentityManager.getGlobalConfig().
|
|
158
|
+ getOption("version", "version") + "<br>"
|
|
159
|
+ + "<b>Desciption:</b> The intelligent IRC client");
|
157
|
160
|
}
|
158
|
161
|
UIUtilities.resetScrollPane(scrollPane);
|
159
|
162
|
}
|