diff --git a/src/tweetz.core/Interfaces/ISettings.cs b/src/tweetz.core/Interfaces/ISettings.cs
index 89d12c07..6d89b376 100644
--- a/src/tweetz.core/Interfaces/ISettings.cs
+++ b/src/tweetz.core/Interfaces/ISettings.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using System.ComponentModel;
+using System.ComponentModel;
using tweetz.core.Models;
namespace tweetz.core.Interfaces
@@ -20,6 +19,7 @@ public interface ISettings : INotifyPropertyChanged
bool HideTranslate { get; }
bool HideRetweets { get; set; }
bool HideNoMediaTweets { get; set; }
+ bool HideCloseButton { get; set; }
bool SpellCheck { get; set; }
bool ShowInSystemTray { get; set; }
bool AlwaysOnTop { get; set; }
diff --git a/src/tweetz.core/Models/Settings.cs b/src/tweetz.core/Models/Settings.cs
index 89534b03..7382894e 100644
--- a/src/tweetz.core/Models/Settings.cs
+++ b/src/tweetz.core/Models/Settings.cs
@@ -47,6 +47,7 @@ public Settings(IMessageBoxService messageBoxService)
private bool hideTranslate;
private bool hideRetweets;
private bool hideNoMediaTweets;
+ private bool hideCloseButton;
private bool donated;
private bool spellCheck;
private bool showInSystemTray;
@@ -152,6 +153,12 @@ public bool HideNoMediaTweets
set => SetProperty(ref hideNoMediaTweets, value);
}
+ public bool HideCloseButton
+ {
+ get => hideCloseButton;
+ set => SetProperty(ref hideCloseButton, value);
+ }
+
public bool SpellCheck
{
get => spellCheck;
@@ -285,6 +292,7 @@ private void CopySettings(Settings settings)
HideTranslate = settings.HideTranslate;
HideRetweets = settings.HideRetweets;
HideNoMediaTweets = settings.hideNoMediaTweets;
+ HideCloseButton = settings.hideCloseButton;
SpellCheck = settings.SpellCheck;
ShowInSystemTray = settings.showInSystemTray;
AlwaysOnTop = settings.alwaysOnTop;
diff --git a/src/tweetz.core/Resources/Strings.xaml b/src/tweetz.core/Resources/Strings.xaml
index 9b8156db..55204c03 100644
--- a/src/tweetz.core/Resources/Strings.xaml
+++ b/src/tweetz.core/Resources/Strings.xaml
@@ -30,6 +30,7 @@
Hide translate link
Hide retweets
Hide tweets with no media
+ Hide close button
Run on startup
Font size
Theme
diff --git a/src/tweetz.core/ViewModels/TitleBarControlViewModel.cs b/src/tweetz.core/ViewModels/TitleBarControlViewModel.cs
index c23cbb25..00df8362 100644
--- a/src/tweetz.core/ViewModels/TitleBarControlViewModel.cs
+++ b/src/tweetz.core/ViewModels/TitleBarControlViewModel.cs
@@ -1,5 +1,4 @@
-using System.Windows;
-using tweetz.core.Extensions;
+using tweetz.core.Extensions;
using tweetz.core.Interfaces;
namespace tweetz.core.ViewModels
diff --git a/src/tweetz.core/Views/SettingsBlock/SettingsOptionsBlock.xaml b/src/tweetz.core/Views/SettingsBlock/SettingsOptionsBlock.xaml
index d2905340..a2b3f150 100644
--- a/src/tweetz.core/Views/SettingsBlock/SettingsOptionsBlock.xaml
+++ b/src/tweetz.core/Views/SettingsBlock/SettingsOptionsBlock.xaml
@@ -48,6 +48,12 @@
TextWrapping="Wrap" />
+
+
+
+
+ ToolTip="{StaticResource close-tooltip}"
+ Visibility="{Binding Settings.HideCloseButton, Converter={StaticResource NotBooleanToVisibilityConverter}}">