Skip to content

Commit

Permalink
v3.1.2
Browse files Browse the repository at this point in the history
Backlog
  • Loading branch information
ccz-2 committed Mar 10, 2020
1 parent 745ae90 commit 58279a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file modified NDFS.ankiaddon
Binary file not shown.
12 changes: 6 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# No Distractions Full Screen
# v3.1.1 2/28/2020
# v3.1.2 2/28/2020
# Copyright (c) 2020 Quip13 ([email protected])
#
# MIT License
Expand All @@ -21,7 +21,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from aqt.reviewer import Reviewer
from aqt.qt import *
from aqt import *
from aqt.webview import AnkiWebView
Expand Down Expand Up @@ -403,7 +403,7 @@ def toggle_window():
menu.addAction(enable_cursor_hide)
enable_cursor_hide.triggered.connect(user_settings)

def linkHandler_wrapper(url):
def linkHandler_wrapper(self, url):
global posX
global posY
if "cursor_hide" in url and ndfs_inReview:
Expand All @@ -430,9 +430,9 @@ def linkHandler_wrapper(url):
config['answer_bar_posY'] = posY
mw.addonManager.writeConfig(__name__, config)
else:
origLinkHandler(url)
origLinkHandler = mw.reviewer._linkHandler
mw.reviewer._linkHandler = linkHandler_wrapper #custom wrapper
origLinkHandler(self, url)
origLinkHandler = Reviewer._linkHandler
Reviewer._linkHandler = linkHandler_wrapper #custom wrapper

class loseFocus(QObject):
def eventFilter(self, obj, event):
Expand Down
2 changes: 1 addition & 1 deletion config.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### NDFS v3.1.1 Config:
### NDFS v3.1.2 Config:
The most useful config is outlined below (Modifying other values may have unintended consequences - please click "Restore Defaults" if having issues)
Unless otherwise stated, changes are effective immediately
Note: Changing settings through menu buttons will override respective values
Expand Down

0 comments on commit 58279a1

Please sign in to comment.