mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Resolved #39
This commit is contained in:
parent
f582da98c7
commit
9d9fb45b33
5 changed files with 19 additions and 7 deletions
|
|
@ -40,7 +40,7 @@
|
|||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="autoCheckUpdate" serializeAs="String">
|
||||
<value>True</value>
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="autoLock" serializeAs="String">
|
||||
<value>False</value>
|
||||
|
|
|
|||
|
|
@ -780,6 +780,18 @@ private void MainForm_Shown(object sender, EventArgs e)
|
|||
Visible = true;
|
||||
richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
||||
richTextBox.Modified = false;
|
||||
|
||||
if (!File.Exists("Crypto Notepad.settings"))
|
||||
{
|
||||
using (new CenterWinDialog(this))
|
||||
{
|
||||
DialogResult res = MessageBox.Show(this, "Enable automatic update check?", PublicVar.appName, MessageBoxButtons.YesNo, MessageBoxIcon.Information);
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
settings.autoCheckUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void MainWindow_Load(object sender, EventArgs e)
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@
|
|||
// связанные со сборкой.
|
||||
[assembly: AssemblyTitle("Crypto Notepad")]
|
||||
[assembly: AssemblyDescription("Simple editor with encryption features")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyConfiguration("Release")]
|
||||
[assembly: AssemblyCompany("Crypto Notepad")]
|
||||
[assembly: AssemblyProduct("Crypto Notepad")]
|
||||
[assembly: AssemblyCopyright("Sigmanor")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyTrademark("Crypto Notepad")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
[assembly: ComVisible(false)]
|
||||
|
||||
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
|
||||
[assembly: Guid("969df047-1cd0-4744-aeed-8d8877b6c909")]
|
||||
[assembly: Guid("969df047-1cd0-4744-deed-8d8877b6c909")]
|
||||
|
||||
// Сведения о версии сборки состоят из следующих четырех значений:
|
||||
//
|
||||
|
|
|
|||
2
Crypto Notepad/Properties/Settings.Designer.cs
generated
2
Crypto Notepad/Properties/Settings.Designer.cs
generated
|
|
@ -143,7 +143,7 @@ public bool toolbarVisible {
|
|||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool autoCheckUpdate {
|
||||
get {
|
||||
return ((bool)(this["autoCheckUpdate"]));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="autoCheckUpdate" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="autoLock" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
|
|
|
|||
Loading…
Reference in a new issue