SoftwareUpdater fixes and network status check
Bug fix- use a proper sized 32 pixel application icon for notifications Bug fix- sorting list of packages to install and uninstall added Removed use of FinalWindow class now that resizing issues are resolved Diaplsy alert if no network connections are found at application start
This commit is contained in:
@@ -42,6 +42,8 @@ status_t
|
||||
UpdateAction::Perform()
|
||||
{
|
||||
try {
|
||||
fUpdateManager->CheckNetworkConnection();
|
||||
|
||||
fUpdateManager->Init(BPackageManager::B_ADD_INSTALLED_REPOSITORIES
|
||||
| BPackageManager::B_ADD_REMOTE_REPOSITORIES
|
||||
| BPackageManager::B_REFRESH_REPOSITORIES);
|
||||
@@ -61,10 +63,6 @@ UpdateAction::Perform()
|
||||
fprintf(stderr, "Updates aborted by user: %s\n",
|
||||
ex.Message().String());
|
||||
// No need for a final message since user initiated cancel request
|
||||
// Note: activate FinalUpdate() call for testing final message window
|
||||
//fUpdateManager->FinalUpdate(B_TRANSLATE("Updates cancelled"),
|
||||
// B_TRANSLATE("No packages have been updated."));
|
||||
// Note: comment out when testing final message window
|
||||
be_app->PostMessage(kMsgFinalQuit);
|
||||
return B_OK;
|
||||
} catch (BNothingToDoException ex) {
|
||||
|
||||
Reference in New Issue
Block a user