fix termination
This commit is contained in:
parent
34404c7387
commit
d5250093a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue