Support Linux refactoring checks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use super::*;
|
||||
use std::sync::RwLock;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub(super) struct PreferenceDraft {
|
||||
@@ -437,6 +438,7 @@ impl App {
|
||||
return;
|
||||
}
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
let dev_brain_changed = self.config.dev_brain != config.dev_brain;
|
||||
#[cfg(target_os = "macos")]
|
||||
let endpoint_changed = self.config.endpoint != config.endpoint;
|
||||
@@ -447,6 +449,7 @@ impl App {
|
||||
{
|
||||
self._endpoint = None;
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
let pending_endpoint =
|
||||
if config.endpoint.enabled && (endpoint_changed || self._endpoint.is_none()) {
|
||||
let Some(generation) = &self.generation_service else {
|
||||
|
||||
Reference in New Issue
Block a user