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:
parent
e8d09408a3
commit
7fe0e135ac
1 changed files with 3 additions and 0 deletions
3
main.cpp
3
main.cpp
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue