Fixes
This commit is contained in:
@@ -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");;
|
||||
|
Reference in New Issue
Block a user