fix termination
This commit is contained in:
parent
34404c7387
commit
d5250093a0
|
@ -1,5 +1,7 @@
|
||||||
#include "tgtui.h"
|
#include "tgtui.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include <Log.h>
|
#include <Log.h>
|
||||||
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
|
@ -17,6 +19,8 @@ TgTUI::TgTUI() : tgclient(std::bind(&TgTUI::initDoneCB, this)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TgTUI::~TgTUI() {
|
TgTUI::~TgTUI() {
|
||||||
|
stop();
|
||||||
|
|
||||||
delete viewChatList;
|
delete viewChatList;
|
||||||
delete viewChat;
|
delete viewChat;
|
||||||
}
|
}
|
||||||
|
@ -25,13 +29,10 @@ void TgTUI::run() {
|
||||||
|
|
||||||
//apply config
|
//apply config
|
||||||
tgclient.setAuthData( [](){
|
tgclient.setAuthData( [](){
|
||||||
/*
|
|
||||||
std::cout << "Auth Code: " << std::flush;
|
std::cout << "Auth Code: " << std::flush;
|
||||||
std::string code;
|
std::string code;
|
||||||
std::cin >> code; // TODO: take input different
|
std::cin >> code; // TODO: take input different
|
||||||
return code;
|
return code;
|
||||||
*/
|
|
||||||
return "";
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//register callbacks
|
//register callbacks
|
||||||
|
|
Loading…
Reference in New Issue