mirror of https://github.com/buggins/dlangui.git
enable Runtime.terminate in win app
This commit is contained in:
parent
10d27af9c2
commit
6b2b324e78
|
@ -1134,7 +1134,7 @@ int DLANGUIWinMain(void* hInstance, void* hPrevInstance,
|
|||
|
||||
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
|
||||
// TODO: fix hanging on multithreading app
|
||||
//Runtime.terminate();
|
||||
Runtime.terminate();
|
||||
}
|
||||
catch (Throwable e) // catch any uncaught exceptions
|
||||
{
|
||||
|
|
|
@ -834,7 +834,7 @@ class ListWidget : WidgetGroup, OnScrollHandler, OnAdapterChangeHandler {
|
|||
}
|
||||
|
||||
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)
|
||||
return selectItem(index);
|
||||
int maxAttempts = itemCount;
|
||||
|
@ -860,7 +860,7 @@ class ListWidget : WidgetGroup, OnScrollHandler, OnAdapterChangeHandler {
|
|||
}
|
||||
|
||||
bool selectItem(int index) {
|
||||
debug Log.d("selectItem ", index);
|
||||
//debug Log.d("selectItem ", index);
|
||||
if (_selectedItemIndex == index) {
|
||||
updateSelectedItemFocus();
|
||||
makeSelectionVisible();
|
||||
|
|
Loading…
Reference in New Issue