pub fn disarm(&self, support_auto_arm: bool) {
        if support_auto_arm && self.has_auto_arm_enabled() {
            self.unselect();
        } else if self.project() == Reaper::get().current_project() {
            unsafe {
                Reaper::get().medium_reaper().csurf_on_rec_arm_change_ex(
                    self.raw(),
                    RecordArmMode::Unarmed,
                    GangBehavior::DenyGang,
                );
            }
        } else {
            // ReaLearn #283
            self.set_prop_enabled(TrackAttributeKey::RecArm, false);
        }
    }
// If supportAutoArm is false, auto-arm mode is disabled if it has been enabled before
If supportAutoArm is false, auto-arm mode is disabled if it has been enabled before
If supportAutoArm is false auto - arm mode is disabled if it has been enabled before
pub fn disarm(&self, support_auto_arm: bool) {
        if support_auto_arm && self.has_auto_arm_enabled() {
            self.unselect();
        } else if self.project() == Reaper::get().current_project() {
            unsafe {
                Reaper::get().medium_reaper().csurf_on_rec_arm_change_ex(
                    self.raw(),
                    RecordArmMode::Unarmed,
                    GangBehavior::DenyGang,
                );
            }
        } else {
            // ReaLearn #283
            self.set_prop_enabled(TrackAttributeKey::RecArm, false);
        }
    }
pub fn disarm ( & self , support_auto_arm : bool ) { if support_auto_arm && self . has_auto_arm_enabled ( ) { self . unselect ( ) ; } else if self . project ( ) == Reaper :: get ( ) . current_project ( ) { unsafe { Reaper :: get ( ) . medium_reaper ( ) . csurf_on_rec_arm_change_ex ( self . raw ( ) , RecordArmMode :: Unarmed , GangBehavior :: DenyGang , ) ; } } else { // ReaLearn #283 self . set_prop_enabled ( TrackAttributeKey :: RecArm , false ) ; } }
If supportAutoArm is false, auto-arm mode is disabled if it has been enabled before
If supportAutoArm is false auto - arm mode is disabled if it has been enabled before
&self
support_auto_arm
bool
&self
support_auto_arm
bool