protected override void Run()
 {
     RPC_Config.Load();
     if (RPC_Config.Current.Enabled)
     {
         Task.Run(() => RPCController.StartRPC());
     }
 }
Esempio n. 2
0
        protected override void Run()
        {
            RPC_Config.Current.Enabled = !RPC_Config.Current.Enabled;

            RPC_Config.Save();
            if (RPC_Config.Current.Enabled)
            {
                Task.Run(() => RPCController.StartRPC());
            }
            else
            {
                RPCController.StopRPC();
            }

            RPCController.UpdatePresence();
        }
Esempio n. 3
0
 protected override void Run()
 {
     RPC_Config.Current.ShowFileIcon = !RPC_Config.Current.ShowFileIcon;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }
Esempio n. 4
0
 protected override void Run()
 {
     RPC_Config.Current.ResetTimeOnFileChange = !RPC_Config.Current.ResetTimeOnFileChange;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }
Esempio n. 5
0
 protected override void Run()
 {
     RPC_Config.Current.ShowSolutionName = !RPC_Config.Current.ShowSolutionName;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }