MCPcopy Create free account
hub / github.com/cinience/RedisStudio / RefreshWnd

Method RefreshWnd

RedisStudio/RedisDataUI.cpp:110–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void RedisDataUI::RefreshWnd()
111{
112 DBClient* cli = Env()->GetDBClient();
113 if (!cli) return;
114 if (m_iDBIdx != Env()->GetDBIdx())
115 {
116 m_setUpdateDbs.clear();
117 m_iDBIdx = Env()->GetDBIdx();
118 }
119
120 if (!m_setUpdateDbs.empty())
121 {
122 return;
123 }
124 DelChildNode(m_pRootNode);
125 m_setUpdateDbs.clear();
126 m_oKeyRoot.clear();
127
128 DoRefreshDBWork();
129}
130
131bool RedisDataUI::CanChange()
132{

Callers

nothing calls this directly

Calls 4

GetDBClientMethod · 0.80
GetDBIdxMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected