Răsfoiți Sursa

Remove the donation stuff

Leave it in the config in case I ever want to put it back
Antony Male 8 ani în urmă
părinte
comite
7ed6dac3bf

+ 0 - 9
README.md

@@ -85,15 +85,6 @@ Multi-lingual? SyncTrayzor needs you! Please read [Localization](https://github.
 Want to make a contribution? Fantastic, and thank you! Please read [Contributing](https://github.com/canton7/SyncTrayzor/wiki/Contributing) first.
 
 
-Buy me a beer
--------------
-
-I develop SyncTrayzor in my free time because I enjoy it.
-SyncTrayzor will never become paid-for.
-However, if you find SyncTrayzor useful, please consider [buying me a beer](https://synctrayzor.antonymale.co.uk/donate).
-Thanks!
-
-
 Will SyncTrayzor phone home / give away my secrets / etc?
 ---------------------------------------------------------
 

+ 0 - 22
src/SyncTrayzor/Pages/AboutView.xaml

@@ -10,11 +10,6 @@
         FlowDirection="{x:Static l:Localizer.FlowDirection}">
     <Window.Resources>
         <s:BoolToVisibilityConverter x:Key="NoNewVersionVisibility" TrueVisibility="Collapsed" FalseVisibility="Visible"/>
-        <Style x:Key="DonateStyle" TargetType="TextBlock">
-            <Setter Property="TextAlignment" Value="Center"/>
-            <Setter Property="Margin" Value="0,25"/>
-            <Setter Property="TextWrapping" Value="Wrap"/>
-        </Style>
     </Window.Resources>
     <DockPanel LastChildFill="False" Margin="10">
         <TextBlock DockPanel.Dock="Top" FontWeight="Bold" FontSize="25" HorizontalAlignment="Center" Margin="0,0,0,20">SyncTrayzor</TextBlock>
@@ -38,23 +33,6 @@
                        Visibility="{Binding ShowTranslatorAttributation, Converter={x:Static s:BoolToVisibilityConverter.InverseInstance}}"/>
         </Grid>
 
-        <TextBlock DockPanel.Dock="Top"
-                   Visibility="{Binding HaveDonated, Converter={x:Static s:BoolToVisibilityConverter.Instance}}"
-                   Style="{StaticResource DonateStyle}"
-                   Width="{Binding Parent.ActualWidth, RelativeSource={RelativeSource Self}}"
-                   Text="{l:Loc AboutView_DonateThanks}"/>
-
-        <TextBlock DockPanel.Dock="Top"
-                   Visibility="{Binding HaveDonated, Converter={x:Static s:BoolToVisibilityConverter.InverseInstance}}"
-                   Style="{StaticResource DonateStyle}"
-                   FontSize="14"
-                   Width="{Binding Parent.ActualWidth, RelativeSource={RelativeSource Self}}">
-            <TextBlock Text="{l:Loc AboutView_Donate_Text}"/><LineBreak/>
-            <Hyperlink Command="{s:Action BuyMeABeer}">
-                <TextBlock Text="{l:Loc AboutView_Donate_Link}"/>
-            </Hyperlink>
-        </TextBlock>
-        
         <TextBlock DockPanel.Dock="Top" Margin="0,5">
             <Hyperlink Command="{s:Action ShowHomepage}">
                 <TextBlock Text="{Binding HomepageUrl}"/>

+ 0 - 14
src/SyncTrayzor/Pages/AboutViewModel.cs

@@ -12,9 +12,6 @@ namespace SyncTrayzor.Pages
 {
     public class AboutViewModel : Screen
     {
-        // Not in the app.config, in case some sysadmin wants to change it
-        private const string donateUrl = "https://synctrayzor.antonymale.co.uk/donate";
-
         private readonly IWindowManager windowManager;
         private readonly ISyncthingManager syncthingManager;
         private readonly IConfigurationProvider configurationProvider;
@@ -33,8 +30,6 @@ namespace SyncTrayzor.Pages
         }
         private string newerVersionDownloadUrl;
 
-        public bool HaveDonated { get; private set; }
-
         public AboutViewModel(
             IWindowManager windowManager,
             ISyncthingManager syncthingManager,
@@ -57,7 +52,6 @@ namespace SyncTrayzor.Pages
             this.LoadSyncthingVersion();
 
             var configuration = this.configurationProvider.Load();
-            this.HaveDonated = configuration.HaveDonated;
 
             this.CheckForNewerVersionAsync();
         }
@@ -103,14 +97,6 @@ namespace SyncTrayzor.Pages
             this.RequestClose(true);
         }
 
-        public void BuyMeABeer()
-        {
-            this.configurationProvider.AtomicLoadAndSave(c => c.HaveDonated = true);
-            this.HaveDonated = true;
-
-            this.processStartProvider.StartDetached(donateUrl);
-        }
-
         public void Close()
         {
             this.RequestClose(true);

+ 0 - 27
src/SyncTrayzor/Properties/Resources.Designer.cs

@@ -69,33 +69,6 @@ namespace SyncTrayzor.Properties {
             }
         }
         
-        /// <summary>
-        ///   Looks up a localized string similar to Please buy me a beer!.
-        /// </summary>
-        public static string AboutView_Donate_Link {
-            get {
-                return ResourceManager.GetString("AboutView_Donate_Link", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Find SyncTrayzor useful?.
-        /// </summary>
-        public static string AboutView_Donate_Text {
-            get {
-                return ResourceManager.GetString("AboutView_Donate_Text", resourceCulture);
-            }
-        }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Cheers! Thanks for buying me a beer..
-        /// </summary>
-        public static string AboutView_DonateThanks {
-            get {
-                return ResourceManager.GetString("AboutView_DonateThanks", resourceCulture);
-            }
-        }
-        
         /// <summary>
         ///   Looks up a localized string similar to Open Download Page.
         /// </summary>

+ 0 - 9
src/SyncTrayzor/Properties/Resources.resx

@@ -852,12 +852,6 @@ Do you want to restart SyncTrayzor now?</value>
   <data name="ConflictResolutionView_Button_ShowInFolder" xml:space="preserve">
     <value>Show in Folder</value>
   </data>
-  <data name="AboutView_Donate_Link" xml:space="preserve">
-    <value>Please buy me a beer!</value>
-  </data>
-  <data name="AboutView_Donate_Text" xml:space="preserve">
-    <value>Find SyncTrayzor useful?</value>
-  </data>
   <data name="ConflictResolutionView_DeleteToRecycleBin" xml:space="preserve">
     <value>Move deleted files to the recycle bin, rather than deleting permanently</value>
   </data>
@@ -890,9 +884,6 @@ Do you want to restart SyncTrayzor now?</value>
   <data name="ConsoleView_ResumeButton" xml:space="preserve">
     <value>Resume</value>
   </data>
-  <data name="AboutView_DonateThanks" xml:space="preserve">
-    <value>Cheers! Thanks for buying me a beer.</value>
-  </data>
   <data name="SettingsView_ShowDeviceOrFolderRejectedBalloons" xml:space="preserve">
     <value>Show "Add New Device / Folder" balloon messages</value>
   </data>