Skip to content

Commit

Permalink
百分比UI
Browse files Browse the repository at this point in the history
  • Loading branch information
TC999 committed Dec 1, 2024
1 parent 38bfae9 commit 00762d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ impl eframe::App for AppDataCleaner {
Grid::new("folders_table").striped(true).show(ui, |ui| {
ui.label("文件夹");
ui.label("大小");
ui.label("父级百分比"); // 后续内容,死机暂时不处理
ui.label("使用软件");
ui.label("操作");
ui.end_row();

for (folder, size) in &self.folder_data {
ui.label(folder);
ui.label(utils::format_size(*size));
ui.label("敬请期待"); // 百分比计算,一直死机没解决,代码在dev分支
ui.label("敬请期待");

if ui.button("彻底删除").clicked() {
Expand Down

0 comments on commit 00762d8

Please sign in to comment.