feat: misc improvements
This commit is contained in:
@ -22,7 +22,7 @@ pub struct Payload {
|
||||
pub pkg: PkgKey
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Serialize, Deserialize, Debug)]
|
||||
pub enum InstallResult {
|
||||
Ready, Deferred
|
||||
}
|
||||
@ -167,7 +167,7 @@ impl PackageStore {
|
||||
archive.extract(path)?;
|
||||
self.reload_package(key.to_owned()).await;
|
||||
|
||||
self.app.emit("install-end", Payload {
|
||||
self.app.emit("install-end-prelude", Payload {
|
||||
pkg: key.to_owned()
|
||||
})?;
|
||||
|
||||
@ -189,7 +189,7 @@ impl PackageStore {
|
||||
let rv = Self::clean_up_package(&path).await;
|
||||
|
||||
if rv.is_ok() {
|
||||
self.app.emit("install-end", Payload {
|
||||
self.app.emit("install-end-prelude", Payload {
|
||||
pkg: key.to_owned()
|
||||
})?;
|
||||
log::info!("deleted {}", key);
|
||||
|
Reference in New Issue
Block a user