예제 #1
0
파일: glue.py 프로젝트: 1635594911/FeelUOwn
 def switch_desktop_mini(self):
     if ControllerApi.desktop_mini.isVisible():
         self.show()
     else:
         if platform.system().lower() == "darwin":
             self.showMinimized()
         else:
             self.hide()
     ControllerApi.toggle_desktop_mini()
예제 #2
0
 def switch_desktop_mini(self):
     if ControllerApi.desktop_mini.isVisible():
         self.show()
     else:
         if platform.system().lower() == "darwin":
             self.showMinimized()
         else:
             self.hide()
     ControllerApi.toggle_desktop_mini()
예제 #3
0
def init():

    LOG.info("NetEase Plugin init")

    ControllerApi.api = netease_normalize

    user = UserDb.get_last_login_user()
    if user is not None:
        netease_normalize.set_uid(user.uid)
        user_data = user.basic_info
        if user.cookies is not None:
            netease_normalize.ne.load_cookies(user.cookies)
            if netease_normalize.login_by_cookies():
                ControllerApi.set_login()
                ViewOp.load_user_infos(user_data)
예제 #4
0
def init():

    LOG.info("NetEase Plugin init")

    ControllerApi.api = netease_normalize

    user = UserDb.get_last_login_user()
    if user is not None:
        netease_normalize.set_uid(user.uid)
        user_data = user.basic_info
        if user.cookies is not None:
            netease_normalize.ne.load_cookies(user.cookies)
            if netease_normalize.login_by_cookies():
                ControllerApi.set_login()
                ViewOp.load_user_infos(user_data)
예제 #5
0
 def closeEvent(self, event):
     ControllerApi.ready_to_quit()
예제 #6
0
 def on_play_song(self, mid=None):
     self.mode_manager.change_to_normal()
     ControllerApi.play_specific_song_by_mid(mid)
예제 #7
0
 def on_login_success(self, data):
     ControllerApi.set_login()
     ViewOp.load_user_infos(data)
예제 #8
0
파일: glue.py 프로젝트: 1635594911/FeelUOwn
 def closeEvent(self, event):
     ControllerApi.ready_to_quit()
예제 #9
0
파일: glue.py 프로젝트: 1635594911/FeelUOwn
 def on_play_song(self, mid=None):
     self.mode_manager.change_to_normal()
     ControllerApi.play_specific_song_by_mid(mid)
예제 #10
0
파일: glue.py 프로젝트: 1635594911/FeelUOwn
 def on_login_success(self, data):
     ControllerApi.set_login()
     ViewOp.load_user_infos(data)