Skip to content

Commit

Permalink
bak
Browse files Browse the repository at this point in the history
  • Loading branch information
TC999 committed Dec 11, 2024
1 parent 0789199 commit 800a9d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ impl Default for SubscriptionManager {

impl SubscriptionManager {
pub fn show_window(&mut self, ctx: &egui::Context) {
if self.is_open {
let mut is_open = self.is_open;
if is_open {
egui::Window::new("订阅规则")
.open(&mut self.is_open)
.open(&mut is_open)
.show(ctx, |ui| {
self.show_controls(ui);
self.show_subscriptions(ui);
self.show_download_status(ui);
});
}
self.is_open = is_open;
}

fn show_controls(&mut self, ui: &mut egui::Ui) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use crate::logger; // 导入 logger 模块
use crate::move_module; // 导入移动模块
use crate::open;
use crate::scanner;
use crate::subscription;
use crate::utils;
use crate::yaml_loader::FolderDescriptions;
use eframe::egui::{self, Grid, ScrollArea};
use std::collections::HashSet;
use std::sync::mpsc::{Receiver, Sender};
use subscription::SubscriptionManager;

pub struct AppDataCleaner {
is_scanning: bool,
Expand Down

0 comments on commit 800a9d3

Please sign in to comment.