mirror of
https://gitlab.com/erkanisik/yali-rs.git
synced 2026-10-01 17:33:46 +00:00
fix: manuel girilen bölüm boyutunun mountpoint değişiminde ezilmesi
This commit is contained in:
@@ -1095,9 +1095,15 @@ impl PartitionStep {
|
||||
.vertical_align(egui::Align::Center)
|
||||
);
|
||||
|
||||
// Mountpoint değiştiğinde boyutu otomatik güncelle
|
||||
// Mountpoint değiştiğinde boyutu otomatik güncelle (eğer değer boşsa veya varsayılansa)
|
||||
if prev_mp != self.manual.add_mountpoint {
|
||||
let mp = self.manual.add_mountpoint.trim().to_lowercase();
|
||||
let current_size = self.manual.add_size_str.trim();
|
||||
let is_empty_or_default = current_size.is_empty()
|
||||
|| current_size == "0"
|
||||
|| current_size == "remaining";
|
||||
|
||||
if is_empty_or_default {
|
||||
self.manual.add_size_str = match mp.as_str() {
|
||||
"/boot/efi" => "1024".to_string(), // 1GB
|
||||
"swap" => {
|
||||
@@ -1123,6 +1129,7 @@ impl PartitionStep {
|
||||
_ => self.manual.add_size_str.clone(), // Diğerleri için mevcut değeri koru
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// mountpoint "swap" seçildiğinde FS tipini otomatik swap yap
|
||||
|
||||
Reference in New Issue
Block a user