Exception handling
This commit is contained in:
		
							parent
							
								
									2e78d7ccfe
								
							
						
					
					
						commit
						dbcdef9bf0
					
				@ -143,6 +143,8 @@ namespace OWTrack
 | 
			
		||||
        private void OWTrackFunc(bool state) => tr.settings.TrackOW = state;
 | 
			
		||||
 | 
			
		||||
        private void update()
 | 
			
		||||
        {
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                Wins.Text = tr.GetWins().ToString();
 | 
			
		||||
                Losses.Text = tr.GetLosses().ToString();
 | 
			
		||||
@ -155,6 +157,12 @@ namespace OWTrack
 | 
			
		||||
                srTextBox.Text = null;
 | 
			
		||||
                saveManeger.SaveJSON(tr);
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
                MessageBox.Show(e.Message);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void AddMatch()
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
@ -128,8 +128,7 @@ namespace OWTrack
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
                MessageBox.Show(e.Message);
 | 
			
		||||
                return false;
 | 
			
		||||
                throw e;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user