Skip to content

Commit

Permalink
remove unnecessary check for the resolution adjustment status
Browse files Browse the repository at this point in the history
  • Loading branch information
Erimelowo committed May 4, 2024
1 parent c805a8a commit d04792d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ int main(int argc, char *argv[])

// Initialize loop variables
long lastChangeTime = getCurrentTimeMillis();
bool isCurrentAppDisabled = false;
bool adjustResolution = true;
std::list<float> gpuTimes;
std::list<float> cpuTimes;
Expand Down Expand Up @@ -375,7 +374,7 @@ int main(int argc, char *argv[])
bool inDashboard = vr::VROverlay()->IsDashboardVisible();
// Check that we're in a supported application
std::string appKey = getCurrentApplicationKey();
isCurrentAppDisabled = disabledApps.find(appKey) != disabledApps.end() || appKey == "";
bool isCurrentAppDisabled = disabledApps.find(appKey) != disabledApps.end() || appKey == "";
// Only adjust resolution if not in dashboard and in a supported application
adjustResolution = !inDashboard && !isCurrentAppDisabled;

Expand Down Expand Up @@ -510,7 +509,7 @@ int main(int argc, char *argv[])
attroff(A_BOLD);

// Resolution adjustment status
if (!adjustResolution || isCurrentAppDisabled)
if (!adjustResolution)
{
mvprintw(18, 0, "Resolution adjustment paused");
}
Expand Down

0 comments on commit d04792d

Please sign in to comment.