forked from cromer/pamac-classic
real update .files db in background
This commit is contained in:
parent
c06def8405
commit
9c6c435b05
@ -141,8 +141,8 @@ namespace Pamac {
|
|||||||
(alpm_action) => {
|
(alpm_action) => {
|
||||||
alpm_action.run ();
|
alpm_action.run ();
|
||||||
},
|
},
|
||||||
// only one thread created so alpm action will run one after one
|
// two threads at a time
|
||||||
1,
|
2,
|
||||||
// no exclusive thread
|
// no exclusive thread
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
@ -456,6 +456,9 @@ namespace Pamac {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void start_refresh (bool force) {
|
public void start_refresh (bool force) {
|
||||||
|
check_authorization.begin ((obj, res) => {
|
||||||
|
bool authorized = check_authorization.end (res);
|
||||||
|
if (authorized) {
|
||||||
string action = dgettext (null, "Synchronizing package databases") + "...";
|
string action = dgettext (null, "Synchronizing package databases") + "...";
|
||||||
reset_progress_box (action);
|
reset_progress_box (action);
|
||||||
connecting_system_daemon ();
|
connecting_system_daemon ();
|
||||||
@ -470,6 +473,8 @@ namespace Pamac {
|
|||||||
finish_transaction ();
|
finish_transaction ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public void refresh_handle () {
|
public void refresh_handle () {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user