Added an item buffer that allows to save the last N(by default 10) items fetched from the Universalis API. If the API shutdowns, these saved items should still be accessible.
The buffer is not saved between each game restart, the main benefits are that it reduces the number of request on the Universalis API when the same items are checked multiple times, and that if the Universalis API disconnect while playing the user can still look at their last searches.
Each item of this buffer will get re-fetched after a certain timeout by default 30 seconds. This setting can also be modified :
A prompt is added when new data is fetched :
The last time an item has been fetched is also displayed :
Changes (#70 and #69) :
Added an item buffer that allows to save the last N(by default 10) items fetched from the Universalis API. If the API shutdowns, these saved items should still be accessible.
The buffer is not saved between each game restart, the main benefits are that it reduces the number of request on the Universalis API when the same items are checked multiple times, and that if the Universalis API disconnect while playing the user can still look at their last searches.
Each item of this buffer will get re-fetched after a certain timeout by default 30 seconds. This setting can also be modified :
![new_settings](https://user-images.githubusercontent.com/45374460/217694180-4bd76c80-7cd8-45cc-ab6e-78774b9fa659.png)
A prompt is added when new data is fetched :![view](https://user-images.githubusercontent.com/45374460/217676979-6d6856c9-ce79-46b9-9351-05a75591b88f.png)
The last time an item has been fetched is also displayed :![new_ui](https://user-images.githubusercontent.com/45374460/217694794-b83ddbc7-0246-46a8-a6fe-44ab0614c73b.png)
Bonus feature (#63) :![bonusfeature](https://user-images.githubusercontent.com/45374460/217699331-d61e8ecf-c5ef-4c22-a9a7-2736385f325b.png)