enable Runtime.terminate in win app

This commit is contained in:
Vadim Lopatin 2016-10-13 14:14:31 +03:00
parent 10d27af9c2
commit 6b2b324e78
2 changed files with 3 additions and 3 deletions

View File

@ -1134,7 +1134,7 @@ int DLANGUIWinMain(void* hInstance, void* hPrevInstance,
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
// TODO: fix hanging on multithreading app // TODO: fix hanging on multithreading app
//Runtime.terminate(); Runtime.terminate();
} }
catch (Throwable e) // catch any uncaught exceptions catch (Throwable e) // catch any uncaught exceptions
{ {

View File

@ -834,7 +834,7 @@ class ListWidget : WidgetGroup, OnScrollHandler, OnAdapterChangeHandler {
} }
bool selectItem(int index, int disabledItemsSkipDirection) { bool selectItem(int index, int disabledItemsSkipDirection) {
debug Log.d("selectItem ", index, " skipDirection=", disabledItemsSkipDirection); //debug Log.d("selectItem ", index, " skipDirection=", disabledItemsSkipDirection);
if (index == -1 || disabledItemsSkipDirection == 0) if (index == -1 || disabledItemsSkipDirection == 0)
return selectItem(index); return selectItem(index);
int maxAttempts = itemCount; int maxAttempts = itemCount;
@ -860,7 +860,7 @@ class ListWidget : WidgetGroup, OnScrollHandler, OnAdapterChangeHandler {
} }
bool selectItem(int index) { bool selectItem(int index) {
debug Log.d("selectItem ", index); //debug Log.d("selectItem ", index);
if (_selectedItemIndex == index) { if (_selectedItemIndex == index) {
updateSelectedItemFocus(); updateSelectedItemFocus();
makeSelectionVisible(); makeSelectionVisible();