Ignore:
Timestamp:
08/11/23 14:39:35 (9 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The browser cache can be cleared from the menu (re #368)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/acars.py

    r1083 r1097  
    2727        super(ACARS, self).__init__()
    2828        self._gui = gui
     29        self._container = None
    2930        self._browser = None
    3031
    3132    def start(self):
    3233        """Start the browser."""
    33         container = cef.getContainer()
     34        self._container = cef.getContainer()
     35        self.pack_start(self._container, True, True, 0)
    3436
    35         self.pack_start(container, True, True, 0)
    36 
    37         self._browser = cef.startInContainer(container, ACARS.URL)
     37        self._browser = cef.startInContainer(self._container, ACARS.URL)
    3838
    3939    def stop(self):
    4040        """Close the browser."""
    4141        if self._browser is not None:
    42             self._browser.CloseBrowser(False)
     42            self._browser.CloseBrowser(True)
    4343            self._browser = None
     44
     45        if self._container is not None:
     46            self.remove(self._container)
     47            self._container = None
Note: See TracChangeset for help on using the changeset viewer.