mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 03:54:50 +01:00
Fixed false assumption for newer Mastodon accounts.
This commit is contained in:
parent
fa9a5edab0
commit
2725d8dc5b
BIN
JKomasto2.jar
BIN
JKomasto2.jar
Binary file not shown.
@ -260,8 +260,7 @@ implements ActionListener {
|
||||
public void
|
||||
showNotifications(List<Notification> notifications)
|
||||
{
|
||||
assert notifications.size() == rows.size();
|
||||
for (int o = 0; o < rows.size(); ++o)
|
||||
for (int o = 0; o < notifications.size(); ++o)
|
||||
{
|
||||
Notification n = notifications.get(o);
|
||||
NotificationComponent c = rows.get(o);
|
||||
@ -278,6 +277,15 @@ implements ActionListener {
|
||||
}
|
||||
c.setText(n.postText);
|
||||
}
|
||||
for (int o = notifications.size(); o < rows.size(); ++o)
|
||||
{
|
||||
NotificationComponent c = rows.get(o);
|
||||
c.setName("");
|
||||
c.setType("");
|
||||
c.setText("");
|
||||
}
|
||||
prev.setEnabled(true);
|
||||
next.setEnabled(!notifications.isEmpty());
|
||||
}
|
||||
|
||||
// - -%- -
|
||||
|
Loading…
Reference in New Issue
Block a user