Fixing badly implemented cache.
This commit is contained in:
parent
027809e2fc
commit
ac40d32ef6
@ -34,6 +34,7 @@ sub _read_bluetooth_printers($self) {
|
|||||||
my @return = map {$self->app->device_hash_to_object($_)} @{JSON::from_json($line)};
|
my @return = map {$self->app->device_hash_to_object($_)} @{JSON::from_json($line)};
|
||||||
$self->_bluetooth_printers(\@return);
|
$self->_bluetooth_printers(\@return);
|
||||||
}
|
}
|
||||||
|
Exd::DeviceToBluetooth->cache_printers($self->_bluetooth_printers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,11 +81,11 @@ sub start($self) {
|
|||||||
$self->_read_usb_printers;
|
$self->_read_usb_printers;
|
||||||
$self->_read_bluetooth_printers;
|
$self->_read_bluetooth_printers;
|
||||||
$self->_update_box;
|
$self->_update_box;
|
||||||
Exd::DeviceToBluetooth->cache_printers($self->_bluetooth_printers);
|
|
||||||
};
|
};
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
$window->present;
|
$window->present;
|
||||||
|
$window->set_transient_for($self->app->window);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub _update_box($self) {
|
sub _update_box($self) {
|
||||||
|
Loading…
Reference in New Issue
Block a user