mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Creating a branch 1.1 where I will try to make the 1.1.7 build available, this means I need to merge some changes from 2.0 to here.
This commit is contained in:
parent
2a8e2475d8
commit
a03bc31aef
247 changed files with 6986 additions and 8233 deletions
|
@ -342,7 +342,8 @@ namespace Greenshot {
|
|||
|
||||
SetWindowCaptureMode(coreConfiguration.WindowCaptureMode);
|
||||
// Disable editing when the value is fixed
|
||||
combobox_window_capture_mode.Enabled = !coreConfiguration.Values["WindowCaptureMode"].IsFixed;
|
||||
combobox_window_capture_mode.Enabled = !coreConfiguration.CaptureWindowsInteractive && !coreConfiguration.Values["WindowCaptureMode"].IsFixed;
|
||||
radiobuttonWindowCapture.Checked = !coreConfiguration.CaptureWindowsInteractive;
|
||||
|
||||
trackBarJpegQuality.Value = coreConfiguration.OutputFileJpegQuality;
|
||||
trackBarJpegQuality.Enabled = !coreConfiguration.Values["OutputFileJpegQuality"].IsFixed;
|
||||
|
@ -352,19 +353,24 @@ namespace Greenshot {
|
|||
|
||||
numericUpDownWaitTime.Value = coreConfiguration.CaptureDelay >=0?coreConfiguration.CaptureDelay:0;
|
||||
numericUpDownWaitTime.Enabled = !coreConfiguration.Values["CaptureDelay"].IsFixed;
|
||||
// Autostart checkbox logic.
|
||||
if (StartupHelper.hasRunAll()) {
|
||||
// Remove runUser if we already have a run under all
|
||||
StartupHelper.deleteRunUser();
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunAll();
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
} else if (StartupHelper.IsInStartupFolder()) {
|
||||
checkbox_autostartshortcut.Enabled = false;
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
if (IniConfig.IsPortable) {
|
||||
checkbox_autostartshortcut.Visible = false;
|
||||
checkbox_autostartshortcut.Checked = false;
|
||||
} else {
|
||||
// No run for all, enable the checkbox and set it to true if the current user has a key
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunUser();
|
||||
checkbox_autostartshortcut.Checked = StartupHelper.hasRunUser();
|
||||
// Autostart checkbox logic.
|
||||
if (StartupHelper.hasRunAll()) {
|
||||
// Remove runUser if we already have a run under all
|
||||
StartupHelper.deleteRunUser();
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunAll();
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
} else if (StartupHelper.IsInStartupFolder()) {
|
||||
checkbox_autostartshortcut.Enabled = false;
|
||||
checkbox_autostartshortcut.Checked = true; // We already checked this
|
||||
} else {
|
||||
// No run for all, enable the checkbox and set it to true if the current user has a key
|
||||
checkbox_autostartshortcut.Enabled = StartupHelper.canWriteRunUser();
|
||||
checkbox_autostartshortcut.Checked = StartupHelper.hasRunUser();
|
||||
}
|
||||
}
|
||||
|
||||
numericUpDown_daysbetweencheck.Value = coreConfiguration.UpdateCheckInterval;
|
||||
|
@ -591,6 +597,10 @@ namespace Greenshot {
|
|||
CheckBox checkBox = sender as CheckBox;
|
||||
ExpertSettingsEnableState(checkBox.Checked);
|
||||
}
|
||||
|
||||
private void radiobutton_CheckedChanged(object sender, EventArgs e) {
|
||||
combobox_window_capture_mode.Enabled = radiobuttonWindowCapture.Checked;
|
||||
}
|
||||
}
|
||||
|
||||
public class ListviewWithDestinationComparer : System.Collections.IComparer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue