Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MELVARDEV committed Jul 3, 2021
1 parent 3cf590d commit f0ff2b8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions League Pass Manager/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ void simulateFill(Process pr)
return;
}



Account result = accounts.Find(x => x.userName == selectedAccount.userName);

bool tryAgain = true;
Expand Down Expand Up @@ -346,6 +348,25 @@ void simulateFill(Process pr)

private async void Button_Click(object sender, RoutedEventArgs e)
{

Account selectedAccount = new Account();
try
{
selectedAccount = (Account)datagrid1.SelectedItem;
Account result = accounts.Find(x => x.userName == selectedAccount.userName);
}
catch (Exception exce)
{
MessageBox.Show("You need to select an account first!");
return;
}







IntPtr hWnd;
Process[] processRunning = Process.GetProcesses();
Process leagueClientProcess = null;
Expand All @@ -359,10 +380,13 @@ private async void Button_Click(object sender, RoutedEventArgs e)

if (leagueClientProcess != null)
{


simulateFill(leagueClientProcess);

} else if (settings.autoOpenClient)
{


string sessionFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Riot Games" + Path.DirectorySeparatorChar + "Riot Client" + Path.DirectorySeparatorChar + "Data" + Path.DirectorySeparatorChar + "RiotClientPrivateSettings.yaml");

Expand Down

0 comments on commit f0ff2b8

Please sign in to comment.