Skip to content

Commit

Permalink
Add method to clear bindings from console (Kenix3#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored and briaguya-ai committed Nov 28, 2023
1 parent 8003063 commit 1984995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/window/gui/ConsoleWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,4 +613,9 @@ void ConsoleWindow::ClearLogs() {
std::string ConsoleWindow::GetCurrentChannel() {
return mCurrentChannel;
}

void ConsoleWindow::ClearBindings() {
mBindings.clear();
mBindingToggle.clear();
}
} // namespace LUS
1 change: 1 addition & 0 deletions src/window/gui/ConsoleWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ConsoleWindow : public GuiWindow {
void SendErrorMessage(const std::string& str);
void Append(const std::string& channel, spdlog::level::level_enum priority, const char* fmt, ...);
std::string GetCurrentChannel();
void ClearBindings();

protected:
void Append(const std::string& channel, spdlog::level::level_enum priority, const char* fmt, va_list args);
Expand Down

0 comments on commit 1984995

Please sign in to comment.