Added zimm to contrib list

This commit is contained in:
Ryzerth 2021-07-03 20:31:54 +02:00
parent 78f079ca84
commit ecbb451763
3 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,8 @@ namespace sdrpp_credits {
"Raov",
"Starman0620",
"Szymon Zakrent",
"Tobias Mädel"
"Tobias Mädel",
"Zimm"
};
const char* libraries[] = {

View File

@ -202,7 +202,9 @@ private:
editedListName = nameBuf;
}
if (strlen(nameBuf) == 0) { style::beginDisabled(); }
bool alreadyExists = (std::find(listNames.begin(), listNames.end(), editedListName) != listNames.end());
if (strlen(nameBuf) == 0 || alreadyExists) { style::beginDisabled(); }
if (ImGui::Button("Apply")) {
open = false;
@ -218,7 +220,7 @@ private:
refreshLists();
loadByName(editedListName);
}
if (strlen(nameBuf) == 0) { style::endDisabled(); }
if (strlen(nameBuf) == 0 || alreadyExists) { style::endDisabled(); }
ImGui::SameLine();
if (ImGui::Button("Cancel")) {
open = false;

View File

@ -338,6 +338,7 @@ I will soon publish a contributing.md listing the code style to use.
* [Syne Ardwin (WI9SYN)](https://esaille.me/)
* [Szymon Zakrent](https://github.com/zakrent)
* [Tobias Mädel](https://github.com/Manawyrm)
* [Zimm](https://github.com/invader-zimm)
## Libraries used