Giter Club home page Giter Club logo

traygarden's People

Contributors

ybogomolov avatar zvirja avatar

Watchers

 avatar  avatar

Forkers

paulstupka

traygarden's Issues

Large clipboard value

Copy large value to clipboard (e.g. 100MB)

Result: TrayGarden starts to consume a lot of memory and CPU

Solution:
Value limit should be introduced.

Add "relevance" highlighting for GlobalMenu

Currently all the context menu entries in global menu have the same color.
But very often it might happen that some entries are irrelevant at this moment (e.g. it makes no sense to process url shortening if clipboard doesn't contain url). It would be nice to highlight them in another colors.

Allow adding context menu items without an icon

Currently in the TrayGarden.Services.PlantServices.GlobalMenu.Core.ContextMenuCollecting.MenuEntriesAppender there is such code:

public virtual void AppentMenuStripItem(string text, Icon icon, EventHandler clickHandler)
{
  if (text.IsNullOrEmpty() || icon == null || clickHandler == null)
    return;
  EventHandler asyncClickHandler = (sender, args) => Task.Factory.StartNew(() => clickHandler(sender, args));
  var menuItem = new ToolStripMenuItem(text, icon.ToBitmap(), asyncClickHandler);
  OutputItems.Add(menuItem);
}

So it's impossible to add a new context menu item without an icon. Although, it's possible to construct a ToolStripMenuItem without an icon by passing null as image.

Configuration corruption

Sometimes the configuration is corrupted.
Should introduce some extra logging to investigate this.

Clipboard duplicate firings

Sometimes clipboard events are duplicated and handlers processes them a few time.
We should add some protection.
This might cause wrong results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.