@@ -228,7 +228,7 @@ fn render_pfp(ui: &mut egui::Ui, damus: &mut Damus, url: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
fn pfp_image<'a>(ui: &mut egui::Ui, img: &TextureHandle, size: f32) -> egui::Response {
|
||||
fn pfp_image(ui: &mut egui::Ui, img: &TextureHandle, size: f32) -> egui::Response {
|
||||
#[cfg(feature = "profiling")]
|
||||
puffin::profile_function!();
|
||||
|
||||
|
||||
@@ -24,18 +24,18 @@ impl NoteOptions {
|
||||
#[inline]
|
||||
pub fn set_note_previews(&mut self, enable: bool) {
|
||||
if enable {
|
||||
*self = *self | NoteOptions::note_previews;
|
||||
*self |= NoteOptions::note_previews;
|
||||
} else {
|
||||
*self = *self & !NoteOptions::note_previews;
|
||||
*self &= !NoteOptions::note_previews;
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_actionbar(&mut self, enable: bool) {
|
||||
if enable {
|
||||
*self = *self | NoteOptions::actionbar;
|
||||
*self |= NoteOptions::actionbar;
|
||||
} else {
|
||||
*self = *self & !NoteOptions::actionbar;
|
||||
*self &= !NoteOptions::actionbar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user