Skip to content

Commit

Permalink
dedent
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Jul 10, 2024
1 parent 8029d57 commit 733a491
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/windows/settingsutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,12 @@ namespace display_device::win_utils {
return ActiveTopology { { device_to_configure } };
}

// DevicePrep::EnsureActive || DevicePrep::EnsurePrimary
{
// The device needs to be active at least.
if (!flattenTopology(initial_topology).contains(device_to_configure)) {
// Create an extended topology as it's probably what makes sense the most...
ActiveTopology new_topology { initial_topology };
new_topology.push_back({ device_to_configure });
return new_topology;
}
// The device needs to be active at least for `DevicePrep::EnsureActive || DevicePrep::EnsurePrimary`.
if (!flattenTopology(initial_topology).contains(device_to_configure)) {
// Create an extended topology as it's probably what makes sense the most...
ActiveTopology new_topology { initial_topology };
new_topology.push_back({ device_to_configure });
return new_topology;
}
}

Expand Down

0 comments on commit 733a491

Please sign in to comment.