Aaron Rainbolt
fe124b0e1e
[partition] Only apply preCheckEncryption to the encrypt widget once
2024-10-02 11:17:34 -05:00
Aaron Rainbolt
cc96e65787
[partition] Always update EncryptWidget's m_state when updateState is called
2024-09-25 18:02:16 -05:00
Adriaan de Groot
7987cc5727
[partition] Repair test of partition layout
...
There are asserts in KPMCore that are triggered when
creating a partition with no (table) parent.
2024-08-13 22:00:50 +02:00
Adriaan de Groot
5f9b7890c3
[partition] Add a summary message about swapfile
2024-07-24 23:20:43 +02:00
Adriaan de Groot
51c39cdbee
[partition] Improve jobDescriptions()
...
- make the dox match what the function does
- reduce calls to job->description()
2024-07-23 22:37:29 +02:00
Tj
bee487653a
Adjust last usable sector for GPT
2024-07-02 22:54:54 +01:00
Adriaan de Groot
9800edf94e
[partition] Translate bootloader location combo box
...
If you switch languages, and then go to the partition
page, and pick "manual", the combo-box entries would
not be translated until **after** you do something
(e.g. edit a partition).
Now they are re-translated when the language changes.
2024-07-02 23:35:54 +02:00
Adriaan de Groot
8aec50d185
[partition] Ensure bootloader path is saved after manual edit
2024-07-02 23:30:43 +02:00
Adriaan de Groot
e52b220a69
[partition] Repair translation of labels
...
There was an accumulation of connected slots when the
current device changed (CALAMARES_RETRANSLATE **adds** one).
Instead, extract the translated messages and carry the
necessary information (number of entries, and if just one,
its name) in the ChoicePage object.
Although you can't effectively change the translation /
current language while looking at the ChoicePage, it is
best to be future-proof.
2024-07-02 23:27:11 +02:00
Adriaan de Groot
6ded13a917
[partition] Simplify selectedDevice()
2024-07-02 23:27:11 +02:00
Adriaan de Groot
ea90ca4118
[partition] Avoid "shadowing" of fields by constructor parameters
...
Although the standard is clear about what this means, Clang
warns about it, so change names to avoid the warning (and make
it slightly easier to read).
2024-06-24 22:32:19 +02:00
Adriaan de Groot
4bba7ed893
[partition] Remove unused variable (it is shadowed a few lines later)
2024-06-24 22:26:18 +02:00
Adriaan de Groot
a5a602c20e
Merge pull request #2345 from calamares/fix-precheck-encryption
...
[partition] Fix crash on filesystem changes when encryption is checked
2024-06-24 20:04:08 +02:00
dalto
dbad8704f5
[partition] Fix crash on filesystem changes when encryption is checked
2024-06-23 14:39:29 -05:00
Adriaan de Groot
2756eb2573
[partition] Improve documentation of partition types a little
2024-06-23 18:26:32 +02:00
Adriaan de Groot
ea744a0c0c
[partition] On FreeBSD, don't expect the KPMCore test to work
2024-06-20 19:48:47 +02:00
Adriaan de Groot
e6e46f1ebd
[partition] Polishing, formatting
2024-04-28 23:07:56 +02:00
dalto8
1c1ade6816
Merge pull request #2316 from SixK/calamares
...
[partition] add option for the encryption checkbox to be checked by default
2024-04-28 15:58:43 +00:00
Adriaan de Groot
1ead64bd5b
Merge pull request #2322 from calamares/fixalongsidecrash
...
[partition] Don't crash when going back without selecting a partition
2024-04-28 17:53:57 +02:00
Adriaan de Groot
4440bf3bfc
[partition] Simplify collecting partition descriptions
2024-04-28 17:45:51 +02:00
Adriaan de Groot
bdbeadcd65
[partition] Move fstab-handling
...
This was declared in osprober, but implemented elsewhere.
Move it to the "right" source file, add tests.
While here, repair the listing of fstab entries
(invalid entries were not stripped).
2024-04-28 17:22:16 +02:00
Adriaan de Groot
93094948fa
[partition] Actually remove invalid fstab entries
2024-04-28 17:01:07 +02:00
dalto
cf9837f48c
[partition] Don't crash is when going back without selecting a partition
2024-04-22 15:47:28 -05:00
Adriaan de Groot
92a5d07ed7
[partition] Apply newer clang-formatting
2024-04-17 10:55:21 +02:00
Penvern Vincent
8469fbd2e8
Fix Next button behviour for all combinations of
...
enableLuksAutomatedPartitioning and preCheckEncryption configure file
variables
2024-04-16 18:08:11 +02:00
Adriaan de Groot
2e96184406
[partition] Simplify logic, remove dead code
2024-04-16 15:46:09 +02:00
Penvern Vincent
5ac23cd3d6
Remove m_preCheckEncryption variable from ChoicePage
2024-04-15 22:44:42 +02:00
Penvern Vincent
cc835cee6f
do not use Global Storage for variable PreCheckEncryption, other modules
...
don't have to know if this variable is set to true or false
2024-04-15 16:34:35 +02:00
Penvern Vincent
70a59d6cd1
add possibility to pre check encryption checkox
2024-04-13 02:09:09 +02:00
Adriaan de Groot
fbde737802
[partition] Don't redundantly specify value binding in lambda
2024-04-02 23:33:21 +02:00
Adriaan de Groot
b396f70d12
[partition] Fix typo's in example config
2024-04-02 23:33:21 +02:00
Adriaan de Groot
36485c8571
[partition] Simplify logic for checking for unencrypted /boot
2024-04-02 23:33:21 +02:00
Adriaan de Groot
ab3612d18d
[partition] tidy up constructor - use initializer-list
2024-02-26 21:39:37 +01:00
Victor Fuentes
01cbe07641
Make default partition entry have partNoEncrypt
be false
2024-02-26 01:55:26 -05:00
Adriaan de Groot
903fed07a9
[partition] Modernize signal-slot connection
2024-02-22 20:43:05 +01:00
Adriaan de Groot
9d1fec3668
[partition] Use a "real" slot for UniqueConnection
2024-02-22 20:37:01 +01:00
Adriaan de Groot
1e59092bf5
[partition] Clear jobs and reset intent
...
Start from a clean slate of intentions when applying changes
in the edit dialog. While here, shuffle debugging around so
that we get more useful information at once.
2024-02-18 22:38:03 +01:00
Adriaan de Groot
d640f17ddf
[partition] When format is selected, clear out existing jobs
...
When editing a partition multiple times, do not leave
jobs from previous edits around. Apply fresh jobs each time.
2024-02-17 23:49:13 +01:00
Adriaan de Groot
2ea5a2b5d5
[partition] Set radio buttons conistently
...
Put the setChecked() calls together so that it is obvious
that only one is checked. *Keep* button is the inverse of
*Format* now. Previously, it used only the not-ZFS value,
and so would override the value obtained from the partition's
*format* setting.
2024-02-17 22:47:19 +01:00
Adriaan de Groot
3881737bbd
[partition] Set intent while creating FS-labeling job
2024-02-17 17:55:34 +01:00
Adriaan de Groot
23d203b00b
[partition] Set label intentions for filesystems
...
FIXES #1992
2024-02-17 17:37:02 +01:00
Adriaan de Groot
fc2bb1ede0
[partition] Add a helper for intended FS labels
...
The KPMCore partition label returns what **is**, not
what is intended. While here, fix some typo's in comments.
2024-02-17 17:37:02 +01:00
Adriaan de Groot
d5f32be5e3
[partition] Repair enable/disable status of FS label
...
The entry field was always enabled, but the label of the
FS-label entry field depended on the format button.
2024-02-17 17:03:27 +01:00
Adriaan de Groot
f23b4ff267
[partition] Preserve the will-it-be-formatted flag of the partition
2024-02-17 16:17:46 +01:00
Adriaan de Groot
ecd8839ac9
[partition] Set up label checkbox later
...
If the update-fs-label checkbox and drop-down depend on the
state of the format button, then set that up only once we're
done deciding on the format button.
2024-02-17 14:26:39 +01:00
Adriaan de Groot
a2b21ee087
[partition] Improve readability in edit-existing-partition
...
Pick out the condition and give it a name. The logic is the
same -- and is made worse because of the if() which looks
redundant at this point.
2024-02-17 14:18:24 +01:00
Adriaan de Groot
f5e09cd676
[partition] Write out translation context
...
lupdate isn't smart enough to pick up `context` when it's
a variable, and then the whole string is not found for
translation.
2024-02-12 21:30:52 +01:00
Adriaan de Groot
f8448e3c97
[partition] Clarify documentation of static functions
2024-02-12 21:28:15 +01:00
Aaron Rainbolt
546bedef11
[partition] Allow specifying unencrypted partitions when encryption is used
2024-02-05 19:24:05 -06:00
Adriaan de Groot
fd2610c739
[*] Remove pre-Qt-5.15 compatibility ifdefs
2024-02-04 22:06:51 +01:00