mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
b18d0a8bdb
commit
548435b4fd
2 changed files with 8 additions and 38 deletions
|
|
@ -37,41 +37,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<Target Name="RemoveUnnecessaryRuntimesAfterBuild" AfterTargets="Build">
|
||||
<RemoveDir Directories="$(OutputPath)runtimes\browser-wasm;
|
||||
$(OutputPath)runtimes\linux-arm;
|
||||
$(OutputPath)runtimes\linux-arm64;
|
||||
$(OutputPath)runtimes\linux-armel;
|
||||
$(OutputPath)runtimes\linux-mips64;
|
||||
$(OutputPath)runtimes\linux-musl-arm;
|
||||
$(OutputPath)runtimes\linux-musl-arm64;
|
||||
$(OutputPath)runtimes\linux-musl-x64;
|
||||
$(OutputPath)runtimes\linux-ppc64le;
|
||||
$(OutputPath)runtimes\linux-s390x;
|
||||
$(OutputPath)runtimes\linux-x64;
|
||||
$(OutputPath)runtimes\linux-x86;
|
||||
$(OutputPath)runtimes\maccatalyst-arm64;
|
||||
$(OutputPath)runtimes\maccatalyst-x64;
|
||||
$(OutputPath)runtimes\osx-arm64;
|
||||
$(OutputPath)runtimes\osx-x64"/>
|
||||
<RemoveDir Directories="$(OutputPath)runtimes\browser-wasm;
 $(OutputPath)runtimes\linux-arm;
 $(OutputPath)runtimes\linux-arm64;
 $(OutputPath)runtimes\linux-armel;
 $(OutputPath)runtimes\linux-mips64;
 $(OutputPath)runtimes\linux-musl-arm;
 $(OutputPath)runtimes\linux-musl-arm64;
 $(OutputPath)runtimes\linux-musl-x64;
 $(OutputPath)runtimes\linux-ppc64le;
 $(OutputPath)runtimes\linux-s390x;
 $(OutputPath)runtimes\linux-x64;
 $(OutputPath)runtimes\linux-x86;
 $(OutputPath)runtimes\maccatalyst-arm64;
 $(OutputPath)runtimes\maccatalyst-x64;
 $(OutputPath)runtimes\osx-arm64;
 $(OutputPath)runtimes\osx-x64" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RemoveUnnecessaryRuntimesAfterPublish" AfterTargets="Publish">
|
||||
<RemoveDir Directories="$(PublishDir)runtimes\browser-wasm;
|
||||
$(PublishDir)runtimes\linux-arm;
|
||||
$(PublishDir)runtimes\linux-arm64;
|
||||
$(PublishDir)runtimes\linux-armel;
|
||||
$(PublishDir)runtimes\linux-mips64;
|
||||
$(PublishDir)runtimes\linux-musl-arm;
|
||||
$(PublishDir)runtimes\linux-musl-arm64;
|
||||
$(PublishDir)runtimes\linux-musl-x64;
|
||||
$(PublishDir)runtimes\linux-ppc64le;
|
||||
$(PublishDir)runtimes\linux-s390x;
|
||||
$(PublishDir)runtimes\linux-x64;
|
||||
$(PublishDir)runtimes\linux-x86;
|
||||
$(PublishDir)runtimes\maccatalyst-arm64;
|
||||
$(PublishDir)runtimes\maccatalyst-x64;
|
||||
$(PublishDir)runtimes\osx-arm64;
|
||||
$(PublishDir)runtimes\osx-x64"/>
|
||||
<RemoveDir Directories="$(PublishDir)runtimes\browser-wasm;
 $(PublishDir)runtimes\linux-arm;
 $(PublishDir)runtimes\linux-arm64;
 $(PublishDir)runtimes\linux-armel;
 $(PublishDir)runtimes\linux-mips64;
 $(PublishDir)runtimes\linux-musl-arm;
 $(PublishDir)runtimes\linux-musl-arm64;
 $(PublishDir)runtimes\linux-musl-x64;
 $(PublishDir)runtimes\linux-ppc64le;
 $(PublishDir)runtimes\linux-s390x;
 $(PublishDir)runtimes\linux-x64;
 $(PublishDir)runtimes\linux-x86;
 $(PublishDir)runtimes\maccatalyst-arm64;
 $(PublishDir)runtimes\maccatalyst-x64;
 $(PublishDir)runtimes\osx-arm64;
 $(PublishDir)runtimes\osx-x64" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
@ -95,6 +65,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
using System.Windows;
|
||||
using Flow.Launcher.Plugin.BrowserBookmark.Models;
|
||||
using System.Windows.Input;
|
||||
using System.ComponentModel;
|
||||
using System.Threading.Tasks;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Flow.Launcher.Plugin.BrowserBookmark.Models;
|
||||
|
||||
namespace Flow.Launcher.Plugin.BrowserBookmark.Views;
|
||||
|
||||
public partial class SettingsControl : INotifyPropertyChanged
|
||||
[INotifyPropertyChanged]
|
||||
public partial class SettingsControl
|
||||
{
|
||||
public Settings Settings { get; }
|
||||
public CustomBrowser SelectedCustomBrowser { get; set; }
|
||||
|
|
@ -53,12 +54,10 @@ public partial class SettingsControl : INotifyPropertyChanged
|
|||
set
|
||||
{
|
||||
Settings.OpenInNewBrowserWindow = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(OpenInNewBrowserWindow)));
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
private void NewCustomBrowser(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var newBrowser = new CustomBrowser();
|
||||
|
|
|
|||
Loading…
Reference in a new issue