fix termination

This commit is contained in:
mrbesen 2023-11-20 21:28:13 +01:00
parent 34404c7387
commit d5250093a0
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#include "tgtui.h"
#include <iostream>
#include <Log.h>
#include <curses.h>
@ -17,6 +19,8 @@ TgTUI::TgTUI() : tgclient(std::bind(&TgTUI::initDoneCB, this)) {
}
TgTUI::~TgTUI() {
stop();
delete viewChatList;
delete viewChat;
}
@ -25,13 +29,10 @@ void TgTUI::run() {
//apply config
tgclient.setAuthData( [](){
/*
std::cout << "Auth Code: " << std::flush;
std::string code;
std::cin >> code; // TODO: take input different
return code;
*/
return "";
});
//register callbacks