新增工具/组合随软件启动自动运行功能
- ToolItem 模型新增 AutoRunOnStart 属性,持久化到配置文件 - App.OnStartup 启动后自动执行标记为自启动的工具/组合(间隔500ms) - 工具编辑窗口和组合编辑窗口新增「随软件启动自动运行」CheckBox - 主界面工具卡片左上角 Rocket 角标标识已启用自启的项目
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
@@ -229,13 +230,21 @@
|
||||
Foreground="{DynamicResource Theme.TextSecondary}"
|
||||
FontSize="11" Margin="0,0,0,16"/>
|
||||
|
||||
<!-- 自动运行 -->
|
||||
<CheckBox Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2"
|
||||
IsChecked="{Binding AutoRunOnStart}"
|
||||
Content="随软件启动自动运行"
|
||||
Foreground="{DynamicResource Theme.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,12"/>
|
||||
|
||||
<!-- 分隔线 -->
|
||||
<Border Grid.Row="7" Grid.ColumnSpan="3"
|
||||
<Border Grid.Row="8" Grid.ColumnSpan="3"
|
||||
BorderBrush="{DynamicResource Theme.CardBorder}"
|
||||
BorderThickness="0,1,0,0" Margin="0,0,0,14"/>
|
||||
|
||||
<!-- 按钮 -->
|
||||
<StackPanel Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2"
|
||||
<StackPanel Grid.Row="9" Grid.Column="1" Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<Button Content="保存"
|
||||
Command="{Binding SaveCommand}"
|
||||
|
||||
Reference in New Issue
Block a user