repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not wake the system when exiting away mode
[deb_libcec.git]
/
src
/
LibCecTray
/
Program.cs
diff --git
a/src/LibCecTray/Program.cs
b/src/LibCecTray/Program.cs
index 32dc7af2b8675f7207703931933d17fe2183ef89..3ab9cf7317e7d5f6a9827768d720ecf4c5f1bdf1 100644
(file)
--- a/
src/LibCecTray/Program.cs
+++ b/
src/LibCecTray/Program.cs
@@
-42,7
+42,15
@@
namespace LibCECTray
private static CECTray _instance;
public static CECTray Instance
{
private static CECTray _instance;
public static CECTray Instance
{
- get { return _instance ?? (_instance = new CECTray()); }
+ get
+ {
+ if (_instance == null)
+ {
+ _instance = new CECTray();
+ _instance.Initialise();
+ }
+ return _instance;
+ }
}
[STAThread]
}
[STAThread]