1
0
This commit is contained in:
Scott E. Graves
2017-05-24 14:32:51 -05:00
parent 25380eef24
commit 58b2914bbd

View File

@@ -223,6 +223,16 @@ public:
const auto lastMountLocation = _siaDriveConfig->GetLastMountLocation();
if (!lastMountLocation.empty())
{
CEventSystem::EventSystem.AddOneShotEventConsumer([this, context](const CEvent& event) -> bool
{
if (event.GetEventName() == "DriveMountEnded")
{
CefPostTask(TID_RENDERER, base::Bind(&FunctionHandler::DriveMountEndedCallback, this, context));
return true;
}
return false;
});
auto global = context->GetGlobal();
auto uiUpdate = global->GetValue("uiUpdate");
auto notifyDriveMounting = uiUpdate->GetValue("notifyDriveMounting");;