Skip to content

Commit 808a8da

Browse files
Adam-Cosnerjackpot51
authored andcommitted
Removed annoying popup dialog on canceling authentication with system packages
1 parent 77ad4b8 commit 808a8da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/packagekit.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ fn transaction_handle(
7272
"ErrorCode" => {
7373
// https://www.freedesktop.org/software/PackageKit/gtk-doc/Transaction.html#Transaction::ErrorCode
7474
let (code, details) = signal.body::<(u32, String)>()?;
75-
return Err(format!("{details} (code {code})").into());
75+
if code != 48 {
76+
return Err(format!("{details} (code {code})").into());
77+
}
7678
}
7779
"ItemProgress" => {
7880
// https://www.freedesktop.org/software/PackageKit/gtk-doc/Transaction.html#Transaction::ItemProgress

0 commit comments

Comments
 (0)