mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Add selection in history page and refresh home page after history changed (#199)
This commit is contained in:
@@ -197,10 +197,12 @@ class _HistoryState extends State<_History> {
|
||||
late int count;
|
||||
|
||||
void onHistoryChange() {
|
||||
setState(() {
|
||||
history = HistoryManager().getRecent();
|
||||
count = HistoryManager().count();
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
history = HistoryManager().getRecent();
|
||||
count = HistoryManager().count();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
Reference in New Issue
Block a user