| 61 | |
| 62 | |
| 63 | void MyFrameLog::onUpdateTimer(wxTimerEvent& event) |
| 64 | { |
| 65 | wxArrayString log = VNCConn::getLog(); |
| 66 | if(log.GetCount() - lines_printed > 50) |
| 67 | { |
| 68 | wxBeginBusyCursor(); |
| 69 | Freeze(); |
| 70 | } |
| 71 | |
| 72 | while(lines_printed < log.GetCount()) |
| 73 | { |
| 74 | *text_ctrl_log << log[lines_printed]; |
| 75 | ++lines_printed; |
| 76 | } |
| 77 | |
| 78 | if(IsFrozen()) { |
| 79 | Thaw(); |
| 80 | wxEndBusyCursor(); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | |
| 85 |
nothing calls this directly
no outgoing calls
no test coverage detected