Skip to content

Commit d420ba7

Browse files
committed
new project: only use left mouse to select templates (not right or middle)
1 parent 5de034e commit d420ba7

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

UnityLauncherPro/NewProject.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@
8989
<Button x:Name="btnAuthorizeToken" Style="{StaticResource CustomButton}" Content="Authorize" ToolTip="Open Github to create a token" Height="22" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="6,4,0,0" IsEnabled="False" Width="60" Click="btnAuthorizeToken_Click" />
9090
<Button x:Name="btnDisconnectToken" Style="{StaticResource CustomButton}" Content="Disconnect" ToolTip="Disconnect from Github AND delete saved token" Height="22" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="6,4,0,0" IsEnabled="False" Width="64" Visibility="Collapsed" Click="btnDisconnectToken_Click" />
9191
</StackPanel>
92-
92+
9393
<CheckBox x:Name="chkEnableVersionControl" Content="Enable Version Control" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,6,0,6" VerticalAlignment="Center" Checked="chkEnableVersionControl_Checked" Unchecked="chkEnableVersionControl_Checked"/>
94-
94+
9595
<Grid Margin="0,0,0,0">
9696
<Grid.ColumnDefinitions>
9797
<ColumnDefinition Width="120"/>
@@ -105,7 +105,7 @@
105105
<Label Content="🌐" Foreground="#FF009CFF"/>
106106
</StackPanel>
107107
</Grid>
108-
108+
109109
<StackPanel Orientation="Horizontal" Margin="0,4,0,0">
110110
<CheckBox x:Name="chkEnableOrgs" Content="Organization:" ToolTip="Enable Large File Storage and add .gitattributes" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,8,0,0" VerticalAlignment="Center" IsChecked="True" Checked="chkEnableOrgs_Checked" Unchecked="chkEnableOrgs_Checked"/>
111111
<ComboBox x:Name="cmbGithubOrgs" Margin="6,0,0,0" TabIndex="2" VerticalAlignment="Top" HorizontalAlignment="Left" SelectionChanged="cmbGithubOrgs_SelectionChanged" />
@@ -141,7 +141,7 @@
141141
</StackPanel>
142142
<StackPanel Orientation="Horizontal" Margin="0,0,0,0">
143143
</StackPanel>
144-
144+
145145
</StackPanel>
146146

147147
</Grid>

UnityLauncherPro/NewProject.xaml.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,14 @@ private List<OnlineTemplateItem> ParseTemplatesFromJson(string json)
987987

988988
private void listOnlineTemplates_PreviewMouseDown(object sender, MouseButtonEventArgs e)
989989
{
990+
// only left mouse button
991+
if (e.ChangedButton != MouseButton.Left)
992+
{
993+
// eat the event
994+
e.Handled = true;
995+
return;
996+
}
997+
990998
// Get the item that was clicked
991999
var listBox = sender as ListBox;
9921000
if (listBox == null) return;

0 commit comments

Comments
 (0)