mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-03 15:55:26 +00:00
Fixed some problems when compiling in Mono and running on Linux.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
|
||||
Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
|
||||
@@ -166,14 +166,17 @@ namespace OpenHardwareMonitor.GUI {
|
||||
}
|
||||
set {
|
||||
if (value != window.Visible) {
|
||||
if (value)
|
||||
Redraw();
|
||||
window.Visible = value;
|
||||
if (value)
|
||||
Redraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Redraw() {
|
||||
if (!window.Visible)
|
||||
return;
|
||||
|
||||
if (window.Size != buffer.Size) {
|
||||
DisposeBuffer();
|
||||
CreateBuffer();
|
||||
|
Reference in New Issue
Block a user