Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/observatory/observatoryweathermodel.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | ISD::Weather::Status ObservatoryWeatherModel::status() | 61 | ISD::Weather::Status ObservatoryWeatherModel::status() | ||
62 | { | 62 | { | ||
63 | if (weatherInterface == nullptr) | 63 | if (weatherInterface == nullptr) | ||
64 | return ISD::Weather::WEATHER_IDLE; | 64 | return ISD::Weather::WEATHER_IDLE; | ||
65 | 65 | | |||
66 | return weatherInterface->status(); | 66 | return weatherInterface->status(); | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | bool ObservatoryWeatherModel::refresh() | ||||
70 | { | ||||
71 | return weatherInterface->refresh(); | ||||
72 | } | ||||
73 | | ||||
69 | void ObservatoryWeatherModel::setWarningActionsActive(bool active) | 74 | void ObservatoryWeatherModel::setWarningActionsActive(bool active) | ||
70 | { | 75 | { | ||
71 | warningActionsActive = active; | 76 | warningActionsActive = active; | ||
72 | Options::setWarningActionsActive(active); | 77 | Options::setWarningActionsActive(active); | ||
73 | 78 | | |||
74 | // stop warning actions if deactivated | 79 | // stop warning actions if deactivated | ||
75 | if (!active && warningTimer.isActive()) | 80 | if (!active && warningTimer.isActive()) | ||
76 | warningTimer.stop(); | 81 | warningTimer.stop(); | ||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |