mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-2089: Fixed a problem when the hotkey registration fails and OneDrive is not installed.
This commit is contained in:
parent
4de8d0f8aa
commit
9a7b95e93d
2 changed files with 5 additions and 1 deletions
|
@ -616,7 +616,10 @@ namespace Greenshot {
|
|||
}
|
||||
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
var oneDriveSettingsPath = Path.Combine(localAppData, @"Microsoft\OneDrive\settings\Personal");
|
||||
|
||||
if (!Directory.Exists(oneDriveSettingsPath))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var oneDriveSettingsFile = Directory.GetFiles(oneDriveSettingsPath, "*_screenshot.dat").FirstOrDefault();
|
||||
if (!File.Exists(oneDriveSettingsFile))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue