Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Feb 17, 2024
1 parent 32c0e19 commit 9377eff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Backends/UbuntuDrivers.vala
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ public class SettingsDaemon.Backends.UbuntuDrivers : Object {
return array;
}

// TODO: Add queue
public async void install (string pkg_name) throws DBusError, IOError {
if (!(pkg_name in available_drivers)) {
critical ("Driver not found");
return;
}

if (current_state.state != AVAILABLE) {
warning ("No drivers available, or already downloading a driver.");
return;
Expand Down

0 comments on commit 9377eff

Please sign in to comment.