Add option to hide segment creation buttons in the popup

This commit is contained in:
Ajay
2025-07-16 13:18:50 -04:00
parent 6afcc6fb3a
commit e32db21f4e
4 changed files with 19 additions and 3 deletions

View File

@@ -365,7 +365,7 @@
<div class="small-description">__MSG_showTimeWithSkipsDescription__</div>
</div>
<div data-type="toggle" data-sync="cleanPopup" data-no-safari="true">
<div data-type="toggle" data-sync="cleanPopup">
<div class="switch-container">
<label class="switch">
<input id="cleanPopup" type="checkbox" checked>
@@ -375,6 +375,20 @@
__MSG_cleanPopup__
</label>
</div>
<br/>
<div data-type="toggle" data-sync="hideSegmentCreationInPopup">
<div class="switch-container">
<label class="switch">
<input id="hideSegmentCreationInPopup" type="checkbox" checked>
<span class="slider round"></span>
</label>
<label class="switch-label" for="hideSegmentCreationInPopup">
__MSG_hideSegmentCreationInPopup__
</label>
</div>
</div>
</div>
<div data-type="toggle" data-sync="darkMode">

View File

@@ -77,6 +77,7 @@ interface SBConfig {
shownDeArrowPromotion: boolean;
showZoomToFillError2: boolean;
cleanPopup: boolean;
hideSegmentCreationInPopup: boolean;
// Used to cache calculated text color info
categoryPillColors: {
@@ -349,6 +350,7 @@ const syncDefaults = {
shownDeArrowPromotion: false,
showZoomToFillError2: true,
cleanPopup: false,
hideSegmentCreationInPopup: false,
categoryPillColors: {},

View File

@@ -220,7 +220,7 @@ export const PopupComponent = () => {
}
{
!Config.config.cleanPopup &&
!Config.config.cleanPopup && !Config.config.hideSegmentCreationInPopup &&
<SegmentSubmissionComponent
videoID={videoID || ""}
status={status.status}