-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backlog
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters