~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/qrcodes/QRCodeSoftwareCenterAppGtk.py

  • Committer: Stefan Schwarzburg
  • Date: 2012-11-12 17:34:03 UTC
  • Revision ID: stefan.schwarzburg@googlemail.com-20121112173403-e7a6jj0cr3v55gqn
moved the cache recreation in a separate thread to really keep the ui feel snappy

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        self.completion.set_model(self.model)
142
142
        self.set_placeholder_text(
143
143
            _('[Type the name of an app]'))
144
 
        GObject.idle_add(self._recreate_cache, apps)
 
144
        threading.Thread(target=self._recreate_cache,
 
145
                         args=(apps,)).start()
145
146
 
146
147
    def _recreate_cache(self, apps):
147
148
        # after everything is done: