ui: removed auto refresh
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
#include "component/controller/RefreshController.h"
|
||||
|
||||
#include "utility/messaging/type/MessageRefresh.h"
|
||||
|
||||
#include "component/view/RefreshView.h"
|
||||
|
||||
RefreshController::RefreshController()
|
||||
: m_autoRefreshEnabled(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -17,19 +14,6 @@ void RefreshController::clear()
|
||||
{
|
||||
}
|
||||
|
||||
void RefreshController::handleMessage(MessageAutoRefreshChanged* message)
|
||||
{
|
||||
m_autoRefreshEnabled = message->enabled;
|
||||
}
|
||||
|
||||
void RefreshController::handleMessage(MessageWindowFocus* message)
|
||||
{
|
||||
if (m_autoRefreshEnabled)
|
||||
{
|
||||
MessageRefresh().dispatch();
|
||||
}
|
||||
}
|
||||
|
||||
RefreshView* RefreshController::getView()
|
||||
{
|
||||
return Controller::getView<RefreshView>();
|
||||
|
||||
Reference in New Issue
Block a user