Skip to content

Commit

Permalink
Fix splicing
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Feb 18, 2024
1 parent c3e6759 commit 39c63d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Backends/UbuntuDrivers.vala
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ public class SettingsDaemon.Backends.UbuntuDrivers : Object {
}

if (token.has_prefix ("model")) {
var normalized_token = token.splice (0, 10);
var normalized_token = token.splice (0, 11);
current_device.name = normalized_token;
continue;
}

if (token.has_prefix ("driver")) {
var normalized_token = token.splice (0, 10);
var normalized_token = token.splice (0, 11);
var split_token = normalized_token.split (" - ");
var driver = split_token[0];
devices_by_drivers[driver] = current_device;
Expand Down

0 comments on commit 39c63d4

Please sign in to comment.