#398 - new feature: right-click, copy

This commit is contained in:
Robert McRackan 2022-12-12 15:03:20 -05:00
parent 451af7bea9
commit ce711a36ba
12 changed files with 88 additions and 13 deletions

View file

@ -9,5 +9,6 @@ namespace LinuxConfigApp
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException();
public void CopyTextToClipboard(string text) => throw new PlatformNotSupportedException();
}
}

View file

@ -9,5 +9,6 @@ namespace MacOSConfigApp
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException();
public void CopyTextToClipboard(string text) => throw new PlatformNotSupportedException();
}
}

View file

@ -35,5 +35,8 @@ namespace WindowsConfigApp
public void DeleteFolderIcon(string directory)
=> new DirectoryInfo(directory)?.DeleteIcon();
public void CopyTextToClipboard(string text)
=> Clipboard.SetText(text);
}
}