mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-01 06:05:35 -05:00
Move functions not required in advanced-scene-switcher.hpp
Create header for platform specific functions. Move some UI helper functions to utility.hpp.
This commit is contained in:
@@ -125,15 +125,20 @@ void AdvSceneSwitcher::setupRandomTab()
|
||||
}
|
||||
|
||||
if (switcher->randomSwitches.size() == 0) {
|
||||
addPulse = PulseWidget(ui->randomAdd, QColor(Qt::green));
|
||||
if (!switcher->disableHints) {
|
||||
addPulse =
|
||||
PulseWidget(ui->randomAdd, QColor(Qt::green));
|
||||
}
|
||||
ui->randomHelp->setVisible(true);
|
||||
} else {
|
||||
ui->randomHelp->setVisible(false);
|
||||
}
|
||||
|
||||
if (switcher->switchIfNotMatching != RANDOM_SWITCH) {
|
||||
PulseWidget(ui->randomDisabledWarning, QColor(Qt::red),
|
||||
QColor(0, 0, 0, 0), "QLabel ");
|
||||
if (!switcher->disableHints) {
|
||||
PulseWidget(ui->randomDisabledWarning, QColor(Qt::red),
|
||||
QColor(0, 0, 0, 0), "QLabel ");
|
||||
}
|
||||
} else {
|
||||
ui->randomDisabledWarning->setVisible(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user