mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
(fix) current cursor fix
This commit is contained in:
parent
4c14924eb3
commit
006737e127
@ -72,6 +72,7 @@ public class MouseCursorHandler {
|
|||||||
public boolean enableCursor(final CursorType cursorType) {
|
public boolean enableCursor(final CursorType cursorType) {
|
||||||
if(SystemCursors.isSupported()) {
|
if(SystemCursors.isSupported()) {
|
||||||
SystemCursors.setCursor(cursorType.getCursor());
|
SystemCursors.setCursor(cursorType.getCursor());
|
||||||
|
this.currentCursor = cursorType;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (this.customCursorDisabled) {
|
if (this.customCursorDisabled) {
|
||||||
@ -101,6 +102,7 @@ public class MouseCursorHandler {
|
|||||||
|
|
||||||
public void disableCursor() {
|
public void disableCursor() {
|
||||||
if(SystemCursors.isSupported()) {
|
if(SystemCursors.isSupported()) {
|
||||||
|
this.currentCursor = CursorType.NORMAL;
|
||||||
SystemCursors.setCursor(SystemCursors.ARROW);
|
SystemCursors.setCursor(SystemCursors.ARROW);
|
||||||
} else {
|
} else {
|
||||||
if (this.customCursorDisabled) {
|
if (this.customCursorDisabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user