Fixing badly implemented cache.

This commit is contained in:
Sergiotarxz 2024-10-15 23:48:49 +02:00
parent 027809e2fc
commit ac40d32ef6
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ sub _read_bluetooth_printers($self) {
my @return = map {$self->app->device_hash_to_object($_)} @{JSON::from_json($line)};
$self->_bluetooth_printers(\@return);
}
Exd::DeviceToBluetooth->cache_printers($self->_bluetooth_printers);
}
}
@ -80,11 +81,11 @@ sub start($self) {
$self->_read_usb_printers;
$self->_read_bluetooth_printers;
$self->_update_box;
Exd::DeviceToBluetooth->cache_printers($self->_bluetooth_printers);
};
return 1;
});
$window->present;
$window->set_transient_for($self->app->window);
}
sub _update_box($self) {