about summary refs log tree commit diff stats
path: root/src/tui.hpp
diff options
context:
space:
mode:
authorComradeCrow <comradecrow@vivaldi.net>2023-04-12 15:21:44 -0700
committerComradeCrow <comradecrow@vivaldi.net>2023-04-12 15:21:44 -0700
commit87d0da3a93b7f596ecfd62886efb2f1d965be0dd (patch)
tree9b94607b66eb59d1695b70ba47ba35628c3f7060 /src/tui.hpp
parent9d53072e32c60aa51784182a0a608ce204cab9e6 (diff)
downloadytcpp-87d0da3a93b7f596ecfd62886efb2f1d965be0dd.tar.gz
fix problems
some of them
Diffstat (limited to 'src/tui.hpp')
-rw-r--r--src/tui.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tui.hpp b/src/tui.hpp
index af4d24c..112135c 100644
--- a/src/tui.hpp
+++ b/src/tui.hpp
@@ -1,5 +1,5 @@
-#ifndef Tui
-#define Tui
+#ifndef TUI_H
+#define TUI_H
 #include <string>
 #include "ftxui/component/captured_mouse.hpp"  // for ftxui
 #include "ftxui/component/component.hpp"       // for Input, Renderer, Vertical
@@ -14,8 +14,8 @@ class Tui {
         bool renderSearchBar(std::string&, int&);
         bool isCancelled();
     private:
-        void cancelAndExit(ftxui::ScreenInteractive&);
-        bool cancel;
+        ftxui::Closure cancelAndExit(ftxui::ScreenInteractive&);
+        bool cancel{false};
 
 };