Exemplo n.º 1
0
    def on_app_activate(self, app):
        self.window.show_all()
        # Make some changes after main window is shown.
        # Like hiding some unnecessory widgets.
        self.artists.after_init()
        self.player.after_init()
        self.search.after_init()
        self.shortcut = Shortcut(self.player)
        self.osdlrc.after_init()

        # Cleanup temporary media files
        Net.cleanup_temp_files(self.conf['song-dir'])
        Net.cleanup_temp_files(self.conf['mv-dir'])
Exemplo n.º 2
0
    def on_app_activate(self, app):
        self.window.show_all()
        # Make some changes after main window is shown.
        # Like hiding some unnecessory widgets.
        self.artists.after_init()
        self.player.after_init()
        self.search.after_init()
        self.shortcut = Shortcut(self.player)
        self.osdlrc.after_init()

        # Cleanup temporary media files
        Net.cleanup_temp_files(self.conf['song-dir'])
        Net.cleanup_temp_files(self.conf['mv-dir'])