File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ class ISystem : public core::IReferenceCounted
372
372
bool deleteDirectory (const system::path& p)
373
373
{
374
374
if (std::filesystem::exists (p))
375
- return std::filesystem::remove (p);
375
+ return std::filesystem::remove_all (p);
376
376
else
377
377
return false ;
378
378
}
Original file line number Diff line number Diff line change @@ -295,7 +295,16 @@ namespace nbl::ui
295
295
case ERT_CHANGE_CURSOR_VISIBILITY:
296
296
{
297
297
auto & params = req.changeCursorVisibilityParam ;
298
- ShowCursor (params.visible );
298
+ if (params.visible )
299
+ {
300
+ int ret = ShowCursor (true );
301
+ while (ret < 0 ) ret = ShowCursor (true );
302
+ }
303
+ else
304
+ {
305
+ int ret = ShowCursor (false );
306
+ while (ret >= 0 ) ret = ShowCursor (false );
307
+ }
299
308
break ;
300
309
}
301
310
}
@@ -313,6 +322,10 @@ namespace nbl::ui
313
322
{
314
323
req.destroyWindowParam = std::move (params);
315
324
}
325
+ else if constexpr (std::is_same_v<RequestParams, SRequestParams_ChangeCursorVisibility&>)
326
+ {
327
+ req.changeCursorVisibilityParam = std::move (params);
328
+ }
316
329
}
317
330
318
331
bool wakeupPredicate () const { return true ; }
You can’t perform that action at this time.
0 commit comments