Damien Elmes
fd37eceaeb
change purple flag to orange
2018-11-01 14:58:41 +10:00
Damien Elmes
c5a17a29fb
Revert "workaround bottom toolbar issue on macOS/qt5.12"
...
This reverts commit 40b06d463a .
underlying issue should be fixed in qt5.12beta3
2018-10-29 21:08:16 +10:00
Damien Elmes
63a48ecdc4
display warning when profile corrupted
2018-10-29 21:06:33 +10:00
Damien Elmes
038151d2a9
correctly load prefs file modified in more recent qt
2018-10-29 21:06:11 +10:00
Damien Elmes
053c1c320d
work around existing instance not responding quickly
...
on a slow computer the first instance may have set up the local
server but not yet started the main loop, so when a user double clicks
on the icon twice, the second instance was timing out and opening
another window, then giving locked database errors
to work around this, increase the timeout, and tell the user the
existing instance is not responding instead of creating a new instance
https://anki.tenderapp.com/discussions/ankidesktop/30306-error
https://anki.tenderapp.com/discussions/ankidesktop/30550-im-sorry
2018-10-28 14:17:16 +10:00
Damien Elmes
038eccab42
sidebar now visible by default
2018-10-28 12:24:54 +10:00
Damien Elmes
9d20de871b
run latex commands without bundled libs
...
https://anki.tenderapp.com/discussions/ankidesktop/30531-latex-wont-generate-svgs-automatically-but-will-generate-pngs
2018-10-28 11:41:43 +10:00
Damien Elmes
5a5df31b1a
simplify about sizing
2018-10-25 15:47:17 +10:00
Damien Elmes
4836920576
Revert "fix about dialog collapsed on qt 5.11/12"
...
This reverts commit 510bbb2023 .
causes a lot of flickering on startup - will just move to
static sizing instead, as there is a scrollbar anyway
2018-10-25 15:43:17 +10:00
Damien Elmes
40b06d463a
workaround bottom toolbar issue on macOS/qt5.12
2018-10-25 15:34:27 +10:00
Damien Elmes
510bbb2023
fix about dialog collapsed on qt 5.11/12
...
the new approach doesn't seem to work properly on qt 5.9, so just
revert to a static size on that platform
2018-10-25 15:25:47 +10:00
Damien Elmes
eb36e95234
allow startup on qt5.12+
...
an intermittent issue with the webview on macOS, but otherwise
appears ok in initial tests
2018-10-25 14:48:08 +10:00
Damien Elmes
a2831ea843
we can use the old undo shortcut on 5.11
...
webviews no longer propagate the captured shortcut
2018-10-23 18:40:58 +10:00
Damien Elmes
385b2df492
fix black flash on stats load on osx/qt5.11
2018-10-23 17:09:16 +10:00
Damien Elmes
35ae933ad7
fix other clickable anchors
2018-10-23 17:05:47 +10:00
Damien Elmes
7d2d8d6ba7
deal with onclick handlers that don't return false
...
Because <base> is set to the media server URL, <a href='#' ...> causes
a page transition from the current setHtml() page data. Previous Qt
versions allowed us to just ignore the request, but now returning False
in acceptNavigationRequest() causes the subsequent page navigation to
be rejected as well, resulting in no visible change when clicking on a
deck in the deck list.
To deal with this, Anki will now warn when such navigation requests
come in, as the anchors need to be updated to return false. pycmd()
has been updated to return false to make returning in onclick easier.
Also use QUrl.matches() instead of converting the potentially long
URL to a string.
2018-10-23 16:47:01 +10:00
Damien Elmes
bf56616e40
allow the initial setHtml() request to proceed
...
Qt 5.11 appears to call acceptNavigationRequest() for the initial
page load now.
2018-10-23 16:11:08 +10:00
Damien Elmes
fd07481bed
delay event filter installation
...
Qt 5.11 doesn't initialize the focusProxy until
a page has been loaded.
2018-10-23 16:06:56 +10:00
Damien Elmes
ad7135150b
allow startup on qt 5.11
2018-10-23 16:03:27 +10:00
Damien Elmes
63961184dc
support new sip module location
...
qt has moved sip into a submodule
2018-10-23 16:02:59 +10:00
Damien Elmes
65d8e01e50
don't require collection for top toolbar
...
This is a hack, and ideally the code would be refactored
so that the entire main window is not loaded until a collection
is available, but doing that will break a bunch of add-ons.
Fixes
https://anki.tenderapp.com/discussions/beta-testing/1276-anki-215-beta#comment_46241878
2018-10-12 12:08:19 +10:00
Damien Elmes
086fa04873
disable proxy support if 127.0.0.1 is not bypassed
...
There doesn't appear to be an easy way to tell WebEngine to ignore
the proxy for 127.0.0.1, so if the user has not bypassed the proxy
for local addresses, completely disable it. This may break remote
image and script references, but should at least allow the app to
load without intervention.
2018-10-11 15:49:04 +10:00
Damien Elmes
b556645809
use 127.0.0.1 instead of localhost in local urls
2018-10-11 15:45:55 +10:00
Gabriel McManus
dff57c6b20
Properly escape pasted URLs
...
If a URL is pasted and it isn't converted to a media link, then it
should be treated as normal text and properly escaped.
2018-09-29 00:47:45 +00:00
Damien Elmes
f02b536212
increase overview width
...
fixes wrapped button on
https://anki.tenderapp.com/discussions/ankidesktop/29948-214-bugs
2018-09-28 17:54:43 +10:00
Damien Elmes
b9d140e690
catch js results that are received after collection closed
2018-09-28 16:27:41 +10:00
Damien Elmes
dd38879cc9
catch .anki(2) imports
2018-09-27 11:35:21 +10:00
Damien Elmes
76cca08b03
fix error when review button deselected
...
https://anki.tenderapp.com/discussions/ankidesktop/29882-selecting-a-button-and-enter-or-space-always-chooses-good
2018-09-26 16:31:31 +10:00
Damien Elmes
c168fc22cf
support newlines in type:cloze, and convert them to spaces
...
https://anki.tenderapp.com/discussions/ankidesktop/29747-empty-cards-when-trying-to-type-in-cloze-deletions
2018-09-24 17:44:34 +10:00
Damien Elmes
62b02d2754
add rowChanged hook and ensure singleCard attr exists
2018-09-24 17:29:19 +10:00
Damien Elmes
18af2db5aa
use custom mpv config folder
...
not the first time the default location has caused problems for users
https://anki.tenderapp.com/discussions/ankidesktop/29531-bug-ankis-version-of-mpv-loads-mpvconf-from-configmpv-on-macos
2018-09-24 16:26:08 +10:00
Damien Elmes
fb413727b6
print early tracebacks to console
2018-09-24 16:24:11 +10:00
Damien Elmes
7df86c22f9
add missing translation line
2018-09-24 14:48:08 +10:00
Damien Elmes
79d72802bb
add Arman to about
2018-09-24 14:46:44 +10:00
Damien Elmes
4c34c8adcd
enter/space should use selected answer button
...
https://anki.tenderapp.com/discussions/ankidesktop/29882-selecting-a-button-and-enter-or-space-always-chooses-good
2018-09-24 14:24:17 +10:00
Damien Elmes
4a5fe27cab
use anki requests client for common user agent name
...
some websites are blocking access from the generic requests UA - now
they can choose whether they wish to block Anki or not
2018-09-19 23:49:56 +10:00
Damien Elmes
51eac7231e
fix catch of access denied error
2018-09-17 23:38:19 +10:00
Damien Elmes
d1c1bdd2f1
don't force qFade when hardware accel available
...
https://anki.tenderapp.com/discussions/ankidesktop/29599-disable-fade-animation-in-anki-21
2018-09-10 13:33:08 +10:00
Damien Elmes
5e4074af51
fix deck list getting stuck when building filtered deck
...
issue is trying to move to the overview screen before the callbacks
on the deck overview screen complete - "fix" it for now by remaining
on the deck list
2018-09-05 20:02:40 +10:00
Damien Elmes
86bf9e53a0
prevent new users from downloading accidentally
2018-09-05 19:53:41 +10:00
Damien Elmes
0cf2eea1df
prioritize marked/flagged card colour over suspended colour
2018-09-05 16:55:26 +10:00
Damien Elmes
dab1b06e27
Merge pull request #251 from upday7/master
...
disable form.viewPage button when add-on was not downloaded from AnkiWeb
2018-09-02 18:03:14 +10:00
root
190522c8a5
specify exception; convert match result to None
2018-08-31 15:13:06 +08:00
root
8533f9498a
disable form.viewPage button when add-on was not downloaded from AnkiWeb
2018-08-31 14:56:16 +08:00
Glutanimate
2f1ce50870
Try to more closely imitate native widget theming on Linux
...
Renames stdHtml buttonspec to widgetspec, and applies a number of Linux-
specific adjustments, including:
+ updated button designs that more native/modern
+ updated widget focus colors that follow the theme
default color palette
2018-08-30 22:07:06 +02:00
Damien Elmes
859e18e923
add hw accel toggle to prefs
2018-08-30 13:39:04 +10:00
Damien Elmes
5c749c240f
disable question fade when using software rendering
2018-08-30 13:26:08 +10:00
Damien Elmes
ee1bd755a0
Merge pull request #249 from lins05/front-preview-type-input-readonly
...
make the "type:" input readonly in the front preview
2018-08-29 10:35:21 +10:00
Damien Elmes
a36f504a87
don't repeat shortcuts when key held down
...
https://anki.tenderapp.com/discussions/ankidesktop/29405-space-bar-repeat-problem
2018-08-29 10:07:33 +10:00
Shuai Lin
4be0eda5d1
make the "type:" input readonly in the front preview
2018-08-28 09:01:17 +08:00