Преглед на файлове

UI: Hide Alpha channel field from the color picker

Do not allow the user to select the alpha component of a color.
SuslikV преди 6 години
родител
ревизия
7bbd45f8d0
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      UI/properties-view.cpp

+ 1 - 2
UI/properties-view.cpp

@@ -1675,8 +1675,7 @@ bool WidgetInfo::ColorChanged(const char *setting)
 	long long  val   = obs_data_get_int(view->settings, setting);
 	QColor     color = color_from_int(val);
 
-	QColorDialog::ColorDialogOptions options =
-		QColorDialog::ShowAlphaChannel;
+	QColorDialog::ColorDialogOptions options = 0;
 
 	/* The native dialog on OSX has all kinds of problems, like closing
 	 * other open QDialogs on exit, and