INNER CODE UNIT · Rust

selected_theme

pumpbin/pumpbin · src/lib.rs:196

    pub fn selected_theme(&self) -> Theme {
        self.selected_theme.clone()
    }
}

impl Pumpbin {
    pub fn update(&mut self, message: Message) -> iced::Task<Message> {
        match message {
            Message::ShellcodeSrcChanged(x) => self.shellcode_src = x,
            Message::ChooseShellcodeClicked => {
                let choose_shellcode = async {
                    AsyncFileDialog::new()
                        .set_directory(home_dir().unwrap_or(".".into()))
                        .set_title("Select shellcode file")
                        .pick_file()
                        .await
                        .map(|x| x.path().to_path_buf())
                };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…