rename ensure_not_both_blocked_simultaneously to ensure_block_exclusivity
This commit is contained in:
@@ -138,7 +138,7 @@ impl GameNetworking {
|
||||
Self::is_blocked_generic(FILTER_NAME_SAVE_SERVER)
|
||||
}
|
||||
|
||||
pub fn ensure_not_both_blocked_simultaneously(
|
||||
pub fn ensure_block_exclusivity(
|
||||
&mut self,
|
||||
block_method: BlockMethod,
|
||||
) -> Result<(), Box<dyn Error>> {
|
||||
|
||||
+1
-1
@@ -258,7 +258,7 @@ impl App {
|
||||
ui.label("Block method");
|
||||
if let Err(why) = self
|
||||
.game_networking
|
||||
.ensure_not_both_blocked_simultaneously(self.settings.block_method)
|
||||
.ensure_block_exclusivity(self.settings.block_method)
|
||||
{
|
||||
log::warn!("Couldn't ensure block exclusivity: {why}");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user