ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
I wasn't sure if there was a code style to adhere to w.r.t. if statements being in a single line. I saw it done in certain places so I just followed that. I also admit to not testing this but the change set seemed simple enough. I edited this file using GitHub's editor (sorry) so it looks like it added an extraneous newline to the end of the file.
This should fix https://github.com/ShareX/ShareX/issues/7073
I wasn't sure if there was a code style to adhere to w.r.t. if statements being in a single line. I saw it done in certain places so I just followed that. I also admit to not testing this but the change set seemed simple enough. I edited this file using GitHub's editor (sorry) so it looks like it added an extraneous newline to the end of the file.