Skip to content

Commit

Permalink
small fixes and notes changes, ready for 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Leiren committed Mar 2, 2023
1 parent 2715211 commit 964e713
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cd /opt
# rm -rf Npanel
mkdir -p Npanel
cd Npanel
wget "https://github.com/Leiren/Npanel/releases/download/v0.2.3alpha/linux-amd64.zip" -O npanel_linux_amd64.zip
wget "https://github.com/Leiren/Npanel/releases/download/v0.2.4alpha/linux-amd64.zip" -O npanel_linux_amd64.zip
unzip -o npanel_linux_amd64.zip
mv -f npanel.service /etc/systemd/system
sudo systemctl daemon-reload
Expand Down
2 changes: 1 addition & 1 deletion src/web/windows/views/server_status_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void server_status_frame()
ImGui::Button("Software Version", ImVec2(-FLT_MIN, 0.0f));
ImGui::TableNextColumn();
// ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.246f, 0.836f, 0.051f, 0.65f));
ImGui::Button("0.2.3 Alpha", ImVec2(-FLT_MIN, 0.0f));
ImGui::Button("0.2.4 Alpha", ImVec2(-FLT_MIN, 0.0f));
// ImGui::PopStyleColor();

// ImGui::TableNextColumn();.
Expand Down
10 changes: 6 additions & 4 deletions src/web/windows/views/telegram_bot_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ void not_activated_view()
}

ImGui::Text("\n");
ImGui::Text("Note that telegram bot should not be connected to 2 servers as same time, disconnect it from old server first, then connect it to new server.");
ImGui::Text("\n");
ImGui::Text("\n");
ImGui::PushStyleColor(ImGuiCol_Text, Color::orange);

ImGui::Text("Note that 1 telegram bot token should not be connected to 2 servers as same time\ndisconnect it from old server first, then connect it to new server.");
ImGui::PopStyleColor();

ImGui::Text("Bot features:");
ImGui::BulletText("Users can check their stats and take their configs with latest domain that this server is runnig on.");
ImGui::BulletText("You can change server domain and re-send updated configs to users.");
Expand Down Expand Up @@ -139,7 +141,7 @@ void not_activated_view()
if (ImGui::Button("copy", ImVec2(120, 0)))
{
char admin_link[120] = {0};
sprintf(admin_link, "https://telegram.me/%s?start=%s", bot_name, ServerReportStore::last_report.panelsettings.admin_password.c_str());
sprintf(admin_link, "https://telegram.me/%s?start=%s", bot_name, ServerReportStore::last_report.panelsettings.admin_password.c_str());
ImGui::SetClipboardText((const char *)admin_link);
}
ImGui::NewLine();
Expand Down
3 changes: 2 additions & 1 deletion src/web/windows/views/user_popups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ static void create_user(nup_state &cst)
has_error = false;

}); });
cst = {};
// cst = {};
cst.name[0] = 0;
}
static void update_user(nup_state &cst, const char *user_password, bool user_enable)
{
Expand Down

0 comments on commit 964e713

Please sign in to comment.