Ignore:
Timestamp:
03/04/12 09:35:01 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The status icon is now hidden properly when the program quits, and made restarting nicer

File:
1 edited

Legend:

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

    r37 r38  
    55from mlx.gui.common import *
    66
    7 from mlx.update import update, restart
     7from mlx.update import update
    88
    99import mlx.const as const
     
    9696                                else gtk.WIN_POS_CENTER_ON_PARENT)
    9797
    98     def __init__(self, programDirectory, updateURL, parentWindow):
     98    def __init__(self, gui, programDirectory, updateURL, parentWindow):
    9999        """Construct the updater. If not created yet, the windows used by the
    100100        updater are also created."""
    101101        super(Updater, self).__init__()
     102
     103        self._gui = gui
    102104       
    103105        self._programDirectory = programDirectory
     
    280282        self._progressWindow.hide()
    281283        if self._restart:
    282             restart()
     284            self._gui.restart()
    283285
    284286#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.