mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 06:15:08 +00:00
A few bug fixes to avoid crashes on Linux systems.
This commit is contained in:
@@ -155,6 +155,15 @@ namespace OpenHardwareMonitor.GUI {
|
||||
UnitManager.TemperatureUnit == TemperatureUnit.Celcius;
|
||||
fahrenheitToolStripMenuItem.Checked = !celciusToolStripMenuItem.Checked;
|
||||
|
||||
// Hide the system tray and auto startup menu items on Unix
|
||||
int p = (int)System.Environment.OSVersion.Platform;
|
||||
if ((p == 4) || (p == 128)) {
|
||||
startMinMenuItem.Visible = false;
|
||||
minTrayMenuItem.Visible = false;
|
||||
startupMenuItem.Visible = false;
|
||||
separatorMenuItem.Visible = false;
|
||||
}
|
||||
|
||||
if (startMinMenuItem.Checked) {
|
||||
if (!minTrayMenuItem.Checked) {
|
||||
WindowState = FormWindowState.Minimized;
|
||||
|
Reference in New Issue
Block a user