File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,10 @@ public class SettingsDaemon.Backends.UbuntuDrivers : Object {
157157 }
158158 }
159159
160- available_drivers[driver] = yield update_installed (driver, package_names);
160+ GenericArray<string> driver_available_packages = yield update_installed (driver, package_names);
161+ if (driver_available_packages. length > 0 ) {
162+ available_drivers[driver] = driver_available_packages;
163+ }
161164 }
162165
163166 if (available_drivers. length == 0 ) {
@@ -193,8 +196,6 @@ public class SettingsDaemon.Backends.UbuntuDrivers : Object {
193196
194197 bool all_installed = true ;
195198 foreach (var package in packages) {
196- array. add (package. package_id);
197-
198199 if (! (driver in devices_by_drivers)) {
199200 continue ;
200201 }
@@ -204,6 +205,7 @@ public class SettingsDaemon.Backends.UbuntuDrivers : Object {
204205 } else {
205206 all_installed = false ;
206207 devices_by_drivers[driver]. available_drivers_with_installed[driver] = false ;
208+ array. add (package. package_id);
207209 }
208210 }
209211 } catch (Error e) {
You can’t perform that action at this time.
0 commit comments