fix index out of range error
Bug Fix
What does this MR do?
It checks if the system overview data 'buffer' is empty before clearing out any remaining old data.
Related issues
Fixes #41 (closed)
Checklist
-
Application works as expected when running from source -
AppImage build compiles and runs successfully -
Flatpak build compiles and runs successfully -
There are dependency changes -
Mock tests are successful (if applicable) -
Performance considerations have been taken into account -
This MR is ready to be merged