~gary-lasker/software-center/translation-fix-lp762893

« back to all changes in this revision

Viewing changes to softwarecenter/view/appdetailsview_gtk.py

  • Committer: Michael Vogt
  • Date: 2011-04-15 12:57:17 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110415125717-6bb3h87n5vhsay4d
* softwarecenter/view/appdetailsview_gtk.py, 
  softwarecenter/view/appdetailsview.py:
  - fix flickering during purchase install by more carefully 
    checking if the app just became availalbe

Show diffs side-by-side

added added

removed removed

Lines of Context:
706
706
        # app specific data
707
707
        self.app = None
708
708
        self.app_details = None
 
709
        self.pkg_state = None
709
710
 
710
711
        self.review_stats_widget = ReviewStatsContainer()
711
712
        self.reviews = UIReviewsList(self)
1414
1415
        # init data
1415
1416
        self.app = app
1416
1417
        self.app_details = app.get_details(self.db)
 
1418
        
 
1419
        # check if app just became available and if so, force full
 
1420
        # refresh
 
1421
        if (same_app and
 
1422
            self.pkg_state == PKG_STATE_NEEDS_SOURCE and
 
1423
            self.app_details.pkg_state != PKG_STATE_NEEDS_SOURCE):
 
1424
            force = True
 
1425
        self.pkg_state = self.app_details.pkg_state
1417
1426
 
1418
1427
        # for compat with the base class
1419
1428
        self.appdetails = self.app_details