Commit graph

735 commits

Author SHA1 Message Date
Tom Dewey
23eadf9afe qml: Use regular password field
But, as a consideration for users wanting to verify their password, add a 2s dwell time before the characters are masked. This timeout is prematurely terminated in the event that you enter another key.
2023-12-18 16:29:55 +00:00
Tom Dewey
9b15f7909b qml: Clear saved password using onPressed handler
Using onTextEdited meant that the clear() call would happen after the edit had actually happened.

Instead, use the Keys.onPressed handler, which happens earlier in the input chain.
2023-12-18 16:29:55 +00:00
Davidmp
d19c7599f7 Update rpi-imager_ca.ts
Correcció
2023-11-23 14:14:20 +00:00
Tom Dewey
71dffe4d6e qml: Impose limits on usernames, hostnames 2023-11-21 15:53:00 +00:00
Tom Dewey
89d1ef40d7 bug_report: Ask for Imager version, UK spelling 2023-11-21 12:58:00 +00:00
Tom Dewey
76116f3a1a Link to official docs from README
In order to assist users of the tool, provide a direct link to the official Raspberry Pi documentation for Raspberry Pi Imager.
2023-11-21 11:34:03 +00:00
Kazunari Sasa
c8c968a10b i18n: Minor wording corrections 2023-11-20 15:38:55 +00:00
Aaron Dewes
92fd375886 Fix file being passed to --repo
Since #719, you can no longer use a local json file with --repo (At least in Qt 6). A network request to a file:// url has statusCode 0, which caused this check to fail previously.
2023-11-20 15:33:22 +00:00
maxnet
bee8d3671a
Merge pull request #728 from tdewey-rpi/release/1.8.3
meta: v1.8.3
2023-11-16 19:41:43 +01:00
Tom Dewey
d729317c54 meta: v1.8.3 2023-11-16 15:01:20 +00:00
Tom Dewey
cddee201e8 qml: Fix no-customisation image write 2023-11-16 15:00:34 +00:00
Tom Dewey
9af4f15b27 imagewriter: No filtering should get full OS list 2023-11-16 10:40:51 +00:00
maxnet
c8135c4b1d
Merge pull request #725 from tdewey-rpi/release/1.8.2
meta: v1.8.2
2023-11-15 22:05:32 +01:00
Tom Dewey
be814b92c7 meta: v1.8.2 2023-11-15 15:18:36 +00:00
Tom Dewey
eb2d54a423 imagewriter: Remove unnecessary mutexes
Per suggestion from @maxnet, remove unnecessary guards. Qt signals/slots
will guard against concurrency issues.
2023-11-14 09:53:35 +00:00
Tom Dewey
d2251291ce imagewriter: Fixup redirect handling 2023-11-14 09:53:35 +00:00
Tom Dewey
b3d5221ac2 filtering: Move to C++ backend 2023-11-14 09:53:35 +00:00
Tom Dewey
b29ec3350c imagewriter: Insert nascent HW filter 2023-11-14 09:53:35 +00:00
Tom Dewey
a25855c41a imagewriter: Remove nascent HW filter
This isn't ready yet - so remove the unused stubs.
2023-11-14 09:53:35 +00:00
Tom Dewey
2bd4a068bc imagewriter: Remove unique_ptr for _networkManager 2023-11-14 09:53:35 +00:00
Tom Dewey
a6200ba994 imagewriter: Code style
Use snake_case for local variables.
2023-11-14 09:53:35 +00:00
Tom Dewey
aeb4ceb73f imagewriter: Resolve TOCTOU in getFilteredOSList 2023-11-14 09:53:35 +00:00
Tom Dewey
fc2b67a20c imagewriter: Delete NetworkReplys later. 2023-11-14 09:53:35 +00:00
Tom Dewey
673b3c7a33 qml: move OS list fetch to backend
- Simple implementation of OS list fetching in backend
- Replace frontend OS list fetching by calls to backend
- OS list updates are brought in asynchronously, avoiding excessive UI
  blockage.
- "Erase" and "Custom" OS list options are always present, even in a
  no-internet scenario

Based-On: cillian64/rpi-imager/oslist_backend
2023-11-14 09:53:35 +00:00
Tom Dewey
54ae0f889c
doc: Add example os_list sublist JSON
To assist OS providers with publishing in Imager, provide an example os_list sublist.
2023-11-10 18:55:28 +00:00
David Turner
be7225326a Allow no PSK to be entered for open wifi
It is possible to connect to open wifi networks using raspi-config or
the wf-panel-pi GUI.  It was also possible in rpi-imager but only with a
workaround - if you entered a dummy PSK it would be ignored if the SSID
was that of an open network.  (This also meant a Pi could be tricked
into connecting to an open network on first boot even if a PSK was
configured).

The change in https://github.com/RPi-Distro/raspberrypi-sys-mods/pull/83
has a side effect which means that Pis will no longer connect to an open
network if a PSK is configured.

This commit lets the user enter no PSK to indicate that an open network
should be configured.

Resolves #424
2023-11-08 18:21:35 +00:00
David Turner
0c3fc3243b Remove default asignees from issue templates
We'll set assignees when actually working on issues instead of having
every issue assigned when created.
2023-11-06 14:16:56 +00:00
Robin Geuze
12e024ad7f Also customize image if only a cloudinit payload exists 2023-11-03 10:07:22 +00:00
volkov
ac72c0ddc9 Forgot to save file, oops. 2023-11-03 09:22:18 +00:00
volkov
2d5a050c6e Another bunch of unrelated translation fixes. 2023-11-03 09:22:18 +00:00
volkov
f906efb206 Unrelated translation fixes. 2023-11-03 09:22:18 +00:00
volkov
46c6afbd58 Translated all strings. 2023-11-03 09:22:18 +00:00
Tom Dewey tom.dewey@raspberrypi.com
aaadbdb283 qml: Disable disk cache entirely
This is a compromised change. Essentially, I'm working around a
poorly-understood failure mode in Qt5, where the disk cache can
occasionally fail to invalidate, resulting in stale compiled units being
used.

This will increase application start times in favour of correctness.
2023-11-02 16:15:43 +00:00
Tom Dewey
c412f43fe4
Add issue templates
In order to prompt issue reporters to provide more information up front, introduce some issue templates.

This is the start of a wider initiative to add some structure to how we respond to issues.
2023-10-26 11:30:02 +01:00
veeck
b75b2e6110 Update german translation 2023-10-25 15:01:10 +01:00
Jonathan (JC) Chen
b212170792 docs: update Apple naming 2023-10-24 10:34:52 +01:00
Tom Dewey tom.dewey@raspberrypi.com
edde324138 config: Use ImageList v4
In order to ensure the 'Recommended' tag shows up for older versions of
the Imager, we should migrate to using V4 for the version where we move
the tag out of the JSON file.
2023-10-24 10:34:00 +01:00
Tom Dewey tom.dewey@raspberrypi.com
0033b66ebc icons: Update Windows icon 2023-10-23 13:52:24 +01:00
Tom Dewey tom.dewey@raspberrypi.com
6925c6705c icons: Update macOS, Linux
Provide updated macOS and Linux icon files, as supplied by the comms
team.
2023-10-23 13:52:24 +01:00
Peter Dave Hello
253a9ced64 Add zh-TW Traditional Chinese translation 2023-10-21 20:50:14 +01:00
Floris Bos
37560158f7 Clear src when selecting different device
Closes #696
2023-10-21 11:13:44 +02:00
Floris Bos
1b85b232fd Deal with os_list.json not specifying icon for "No filtering"
Solves warning:
"qrc:/main.qml:758:21: Unable to assign [undefined] to QUrl"
2023-10-21 11:13:38 +02:00
Ruffalo Lavoisier
aeece632dd some update korean translation
- See https://github.com/raspberrypi/rpi-imager/pull/645
2023-10-20 16:34:24 +01:00
Tom Dewey tom.dewey@raspberrypi.com
a981b57b5f qml: Recommend the 'top' OS
We're going to take advantage of the
convention of always putting the recommended OS first in the list, and
append "(Recommended)" to it's description.

This moves the recommendation out of the JSON, and makes the
recommendation durable to filtering.
2023-10-20 14:28:30 +01:00
Floris Bos
457f2fdbed Linux: CMakeLists: only require libdrm on embedded platform
Closes #692
2023-10-20 09:24:34 +02:00
Floris Bos
6b918b448e Release 1.8.1 2023-10-19 20:23:46 +02:00
maxnet
119104d736
Merge pull request #689 from rejas/de_translation
Update german translations
2023-10-19 20:05:22 +02:00
veeck
14e83a874a Update german translation 2023-10-19 16:18:12 +02:00
David Turner
9a7fc7bf3c Hide empty categories when filtering
When filtering the OS list, if all items in a category/sublist are
filtered out then don't show the category/sublist.

Also, clear the selected OS when the HW device is changed, otherwise you
can get weird effects like having an incompatible (hw, os) pair selected
or the highlighted OS moving when the items in the OS list change.
2023-10-19 13:07:42 +01:00
Floris Bos
a29d2c9d7c Windows: fix zstd
Cannot properly check for library functions of a library
that has yet to be compiled.
So fix libarchive quick & dirty.
2023-10-18 21:53:43 +02:00