mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3810 HoloLens : Tool bar button and scheduler for auto sent to server
This commit is contained in:
@@ -18,11 +18,14 @@
|
||||
|
||||
#include "RicHoloLensTerminateSessionFeature.h"
|
||||
|
||||
#include "RicHoloLensAutoExportToSharingServerFeature.h"
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "cafCmdFeatureManager.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicHoloLensTerminateSessionFeature, "RicHoloLensTerminateSessionFeature");
|
||||
@@ -40,6 +43,13 @@ bool RicHoloLensTerminateSessionFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicHoloLensTerminateSessionFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
auto* cmdFeature = dynamic_cast<RicHoloLensAutoExportToSharingServerFeature*>(
|
||||
caf::CmdFeatureManager::instance()->getCommandFeature("RicHoloLensAutoExportToSharingServerFeature"));
|
||||
if (cmdFeature)
|
||||
{
|
||||
cmdFeature->setActive(false);
|
||||
}
|
||||
|
||||
RicHoloLensSessionManager::instance()->terminateSession();
|
||||
|
||||
RicHoloLensSessionManager::refreshToolbarState();
|
||||
|
||||
Reference in New Issue
Block a user