private void FormGitIgnoreLoad(object sender, EventArgs e) { RestorePosition("edit-git-ignore"); if (!Settings.IsBareRepository()) return; MessageBox.Show(".gitignore is only supported when there is a working dir."); Close(); }