windows: the app sets the system proxy; ps-core lint fixes
- The app points the signed-in user's system proxy (WinINet: browsers and most programs follow it) at the local proxy while it runs and proxy.systemProxy.enable asks; the user's own settings are kept and put back when the proxy stops, the service goes, the option is turned off or the app quits; one left behind by a killed app is cleared. A switch for it on the overview. Elsewhere than Windows it does nothing. - ps-core: clippy's collapsible ifs, comparisons without owned values, a range loop without indexing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
77becc235c
commit
7565e62571
9 files changed
+248
-17
No files matched your search
@@ -73,15 +73,15 @@ impl Source {
|
||||
return None;
|
||||
}
|
||||
let rel = entry.strip_prefix(self.strip.as_str())?;
|
||||
if let Some(files) = &self.files {
|
||||
if !files.contains_key(rel) {
|
||||
return None;
|
||||
}
|
||||
if let Some(files) = &self.files
|
||||
&& !files.contains_key(rel)
|
||||
{
|
||||
return None;
|
||||
}
|
||||
if let Some(include) = &self.include {
|
||||
if !matches(include, rel) {
|
||||
return None;
|
||||
}
|
||||
if let Some(include) = &self.include
|
||||
&& !matches(include, rel)
|
||||
{
|
||||
return None;
|
||||
}
|
||||
if matches(&self.exclude, rel) {
|
||||
return None;
|
||||
|
||||
Reference in new issue
Block a user