1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-07-22 14:16:11 +00:00

Clear window for removing remaining color

When we switch disk, some parts of status are changed.
With the status change, color are also changed but sometime remaining
old color.
For fixing it, this commit is adding wclear() for each window.
This commit is contained in:
Takanori Suzuki 2017-01-23 12:21:22 +09:00
parent e8d09408a3
commit 7fe0e135ac

View file

@ -448,8 +448,11 @@ int main()
update = [&]()
{
getmaxyx(stdscr, height, width);
wclear(windowVersion);
drawVersion(windowVersion);
wclear(windowDeviceBar);
drawDeviceBar(windowDeviceBar, smartList, select);
wclear(windowDeviceStatus);
drawStatus(windowDeviceStatus, smartList[select]);
doupdate();
};