 }
 
 ShowOverlay(title, message) {
-    global overlayVisible
+    global overlayVisible, overlayEnabled
+    if(!overlayEnabled) {
+        return
+    }
     overlayVisible := 1
     SysGet, primary, MonitorPrimary
     SysGet, monitor, Monitor, % primary

    global
    CommandConstants()
    DesktopNames()

    MsgNum := DllCall("RegisterWindowMessage", Str, "VIRTUALDESKTOPGRIDSWITCHER_COMMAND")


    desktopName[6] := ""
    desktopName[7] := ""
    desktopName[8] := ""
}

Options() {
    global
    overlayEnabled := 1 ; 1 = enabled, 0 = disabled
}

;;;;;;;
