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 11d1246 commit 162c3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ impl Default for SubscriptionManager {
impl SubscriptionManager {
pub fn show_window(&mut self, ctx: &egui::Context) {
if self.is_open {
let mut start_download = false;
// 在闭包外部处理 start_download 的状态
let start_download = self.render_controls(ctx);

egui::Window::new("订阅规则")
.open(&mut self.is_open)
.show(ctx, |ui| {
start_download = self.render_controls(ui);
self.render_subscriptions(ui);
self.render_download_status(ui);
});
Expand Down

0 comments on commit 162c3ee

Please sign in to comment.