~aleteoryx/muditaos

be1e6f7523040d07259d9c5cc84e695343e40a86 — Paweł Joński 3 years ago e7274f3
[BH-1303] Fix flat settings

Fix flat settings - rename main window
M config/style_check_hook.sh => config/style_check_hook.sh +6 -4
@@ 22,6 22,8 @@ L_GIT_DIR=$(git rev-parse --show-toplevel)
source $L_GIT_DIR/config/format-config.sh
source $L_GIT_DIR/config/clang/colors.sh
source $L_GIT_DIR/config/clang/clang-common.sh
CHANGE_TARGET=${CHANGE_TARGET:-master}


# if autoformatting was disabled by user - then ignore this commit hook
if [ "$DISABLE_AUTO_FORMATTING" -eq 1 ]; then


@@ 47,14 49,14 @@ check_file() {
        case ${last_commit} in
        "True")
            if [[ ${FIX,,} == "true" ]]; then
                git diff -U0 --no-color remotes/origin/master...HEAD "${file}" | ${L_CLANG_DIFF_TOOL} -style file -p1 -i
                git diff -U0 --no-color remotes/origin/"${CHANGE_TARGET}"...HEAD "${file}" | ${L_CLANG_DIFF_TOOL} -style file -p1 -i
                STATUS=$(git status --short -- "${file}")
                if [ -n "${STATUS}" ]; then
                    git add "${file}"
                    results["${file}"]="${FIXED}";
                fi
            else
                OUT=$(git diff -U0 --no-color remotes/origin/master...HEAD "${file}" | ${L_CLANG_DIFF_TOOL} -style file -p1 )
                OUT=$(git diff -U0 --no-color remotes/origin/"${CHANGE_TARGET}"...HEAD "${file}" | ${L_CLANG_DIFF_TOOL} -style file -p1 )
                if [ -n "${OUT}" ]; then
                    results["${file}"]="${ERROR}"
                    return 1


@@ 115,12 117,12 @@ case "${1}" in
        exit 0
        ;;
    --last)
        FILES=$(git diff --name-only remotes/origin/master...HEAD)
        FILES=$(git diff --name-only remotes/origin/"${CHANGE_TARGET}"...HEAD)
        LAST="True"
        FIX="false"
        ;;
    --branch-fix)
        FILES=$(git diff --name-only remotes/origin/master...HEAD)
        FILES=$(git diff --name-only remotes/origin/"${CHANGE_TARGET}"...HEAD)
        LAST="True"
        FIX="true"
        ;;

M products/BellHybrid/apps/application-bell-settings/include/application-bell-settings/ApplicationBellSettings.hpp => products/BellHybrid/apps/application-bell-settings/include/application-bell-settings/ApplicationBellSettings.hpp +2 -1
@@ 4,12 4,13 @@
#pragma once

#include <Application.hpp>
#include <apps-common/windows/AppWindow.hpp>
#include <common/models/AbstractAudioModel.hpp>
#include <service-evtmgr/screen-light-control/ScreenLightControl.hpp>

namespace gui::window::name
{
    inline constexpr auto bellSettings             = "BellSettings";
    inline constexpr auto bellSettings             = gui::name::window::main_window;
    inline constexpr auto bellSettingsTimeUnits    = "BellSettingsTimeUnits";
    inline constexpr auto bellSettingsDialog       = "BellSettingsDialog";
    inline constexpr auto bellSettingsFinished     = "BellSettingsFinished";