mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-25 10:40:31 -05:00
Add deprecation warning for legacy tabs
This commit is contained in:
@@ -86,6 +86,7 @@ void AdvSceneSwitcher::loadUI()
|
||||
setupTriggerTab();
|
||||
setupMacroTab();
|
||||
|
||||
setDeprecationWarnings();
|
||||
setTabOrder();
|
||||
setCurrentTab();
|
||||
restoreWindowGeo();
|
||||
|
||||
@@ -243,6 +243,20 @@ void AdvSceneSwitcher::on_hideLegacyTabs_stateChanged(int state)
|
||||
}
|
||||
}
|
||||
|
||||
void AdvSceneSwitcher::setDeprecationWarnings()
|
||||
{
|
||||
QString toolTip =
|
||||
switcher->disableHints
|
||||
? ""
|
||||
: obs_module_text(
|
||||
"AdvSceneSwitcher.deprecatedTabWarning");
|
||||
for (int idx = 0; idx < ui->tabWidget->count(); idx++) {
|
||||
if (isLegacyTab(ui->tabWidget->tabText(idx))) {
|
||||
ui->tabWidget->widget(idx)->setToolTip(toolTip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString getDefaultSaveLocation()
|
||||
{
|
||||
QString desktopPath = QStandardPaths::writableLocation(
|
||||
|
||||
@@ -80,6 +80,7 @@ public:
|
||||
void setupVideoTab();
|
||||
void setupNetworkTab();
|
||||
void setupMacroTab();
|
||||
void setDeprecationWarnings();
|
||||
void setTabOrder();
|
||||
void setCurrentTab();
|
||||
void restoreWindowGeo();
|
||||
|
||||
Reference in New Issue
Block a user