protected override void Run()
 {
     RPC_Config.Load();
     if (RPC_Config.Current.Enabled)
     {
         Task.Run(() => RPCController.StartRPC());
     }
 }
Beispiel #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();
        }
Beispiel #3
0
 protected override void Run()
 {
     RPC_Config.Current.ShowFileIcon = !RPC_Config.Current.ShowFileIcon;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }
Beispiel #4
0
 protected override void Run()
 {
     RPC_Config.Current.ResetTimeOnFileChange = !RPC_Config.Current.ResetTimeOnFileChange;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }
Beispiel #5
0
 protected override void Run()
 {
     RPC_Config.Current.ShowSolutionName = !RPC_Config.Current.ShowSolutionName;
     RPCController.UpdatePresence();
     RPC_Config.Save();
 }