Skip to content

Commit

Permalink
ReviveOverlay: Small tweaks to the notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Jan 30, 2020
1 parent 0064129 commit 127da04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReviveOverlay/oculusplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include "windowsservices.h"
#include "trayiconcontroller.h"

#include <QCoreApplication>

const ovrID COculusPlatform::AppId = 572698886195608; // Oculus Runtime

COculusPlatform *COculusPlatform::SharedInstance()
Expand Down Expand Up @@ -49,7 +51,7 @@ bool COculusPlatform::Init(QString basePath)
QString email, password;
if (WindowsServices::ReadCredentials(email, password))
Login(email, password);
else
else if (QCoreApplication::arguments().contains("-compositor"))
CTrayIconController::SharedInstance()->ShowInformation(TrayInfo_OculusNotLinked);

// Overwrite sensitive credential data
Expand Down
3 changes: 3 additions & 0 deletions ReviveOverlay/trayiconcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ void CTrayIconController::messageClicked()
{
switch (m_LastInfo)
{
case TrayInfo_AutoLaunchEnabled:
show();
break;
case TrayInfo_AutoLaunchFailed:
QDesktopServices::openUrl(QUrl("https://github.com/LibreVR/Revive/issues"));
break;
Expand Down

0 comments on commit 127da04

Please sign in to comment.