mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Code quality fixes (NullReference checks, unused variables etc)
This commit is contained in:
parent
6ab6033f85
commit
ac08533727
99 changed files with 1252 additions and 1312 deletions
|
@ -20,9 +20,8 @@
|
|||
*/
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using Greenshot.Configuration;
|
||||
using GreenshotPlugin.Core;
|
||||
using Greenshot.IniFile;
|
||||
using GreenshotPlugin.Core;
|
||||
|
||||
namespace Greenshot.Forms {
|
||||
/// <summary>
|
||||
|
@ -34,14 +33,14 @@ namespace Greenshot.Forms {
|
|||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon();
|
||||
this.checkbox_dontaskagain.Checked = false;
|
||||
Icon = GreenshotResources.getGreenshotIcon();
|
||||
checkbox_dontaskagain.Checked = false;
|
||||
}
|
||||
|
||||
|
||||
void Button_okClick(object sender, EventArgs e) {
|
||||
// update config
|
||||
coreConfiguration.OutputPrintPromptOptions = !this.checkbox_dontaskagain.Checked;
|
||||
coreConfiguration.OutputPrintPromptOptions = !checkbox_dontaskagain.Checked;
|
||||
IniConfig.Save();
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue