mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 22:34:27 -07:00
This fixes a NPRE when an instance is already running.
This commit is contained in:
parent
333df64c93
commit
6f573ea304
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ using Autofac;
|
||||||
using Autofac.Features.OwnedInstances;
|
using Autofac.Features.OwnedInstances;
|
||||||
using Caliburn.Micro;
|
using Caliburn.Micro;
|
||||||
using Dapplo.Addons.Bootstrapper;
|
using Dapplo.Addons.Bootstrapper;
|
||||||
|
using Dapplo.Addons.Bootstrapper.Resolving;
|
||||||
using Dapplo.CaliburnMicro.Dapp;
|
using Dapplo.CaliburnMicro.Dapp;
|
||||||
using Dapplo.Config.Ini.Converters;
|
using Dapplo.Config.Ini.Converters;
|
||||||
using Dapplo.Config.Language;
|
using Dapplo.Config.Language;
|
||||||
|
@ -169,6 +170,7 @@ namespace Greenshot
|
||||||
process.Dispose();
|
process.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var greenshotResources = new GreenshotResources(new ManifestResources(null));
|
||||||
// Placehold for the Extension
|
// Placehold for the Extension
|
||||||
IGreenshotLanguage language = null;
|
IGreenshotLanguage language = null;
|
||||||
|
|
||||||
|
@ -177,7 +179,7 @@ namespace Greenshot
|
||||||
{
|
{
|
||||||
|
|
||||||
// TODO: Fix a problem that in this case instance is null
|
// TODO: Fix a problem that in this case instance is null
|
||||||
Icon = GreenshotResources.Instance.GetGreenshotIcon(),
|
Icon = greenshotResources.GetGreenshotIcon(),
|
||||||
ShowInTaskbar = true,
|
ShowInTaskbar = true,
|
||||||
MaximizeBox = false,
|
MaximizeBox = false,
|
||||||
MinimizeBox = false,
|
MinimizeBox = false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue